Dependency Injection in Slim Framework - passing Container into your own classes
I've already commented on this thread but it seems to be dead so I'm opening a new one: Dependency Injection Slim Framework 3 The post above explains how pass Slims Container to a class you've written yourself. However, the OP has asked if it's possible to get Slim to Dependency Inject ALL their classes. I'm also interested in knowing if there's a way to do this since it seems to be anything but DRY if you have to pass the container to every class that you want to use it. As an example, if I want to use one of Slim's functions (such as doing a redirect, in one of my own classes ) I cannot use