These are chat archives for dry-rb/chat

17th
Oct 2016
Odin Dutton
@twe4ked
Oct 17 2016 01:08

newbie dry-web-roda question: given this: https://gist.github.com/twe4ked/f2365df7d452909014d6d628ceb67273

I get this errror: Dry::Container::Error: Nothing registered with the key "main.views.graph"

I checked the container and the view seems to be registered at views.graph (without the main).

Tim Riley
@timriley
Oct 17 2016 03:07
@twe4ked yeah, that's the new default_namespace setting in dry-system (previously called dry-component). We stop you from having to repeat e.g. "Main" everywhere
Odin Dutton
@twe4ked
Oct 17 2016 05:43
@timriley Where is the view automatically registered with the container? It's not getting the main in it's key
Tim Riley
@timriley
Oct 17 2016 05:55
It’s via dry-component/dry-system’s auto-registration mechanism
Andrew Kozin
@nepalez
Oct 17 2016 07:49
@timriley yeah, that's why I've not published it yet. Not sure, whether do it here or not.
It is not shown in synopsis, but there is a middleware for lowest-level things (like building/parsing sql). "Middle"-layer api is opinionated by design to deal with boring tasks
Tim Riley
@timriley
Oct 17 2016 22:43
@twe4ked oh, you may need to modify your view roda plugins to stop putting the sub-app’s name onto the front of the container identifier