Look up objects in the application's container

Is there a better way besides App._container_ to lookup objects with the help of the resolver? I looked through the guides and couldn’t find anything on this. It’s an undocumented property, and the use of underscores is a good clue that I shouldn’t be using it, but if that is the case, how do I perform resolver lookups otherwise?

Thanks!

1 Like

I guess this depends on the place where you’re looking up the objects. If I remember correctly you should be able to do this.get("container") from inside a controller/route.