Zend Framework 2 provides the developer with both -- a Dependency Injection Container
and a Service Locator
implementation. I've always used the Service Locator
. Now I would like to try the Dependency Injector
, but don't see, how to switch to it. There is no bootstrap
file anymore like in ZF1 and I have also not found anything about it in the configs. How does it work?