no-framework-tutorial/8-dependency-injector.md
2014-09-17 21:22:11 +02:00

11 lines
508 B
Markdown

[<< previous](7-inversion-of-control.md)
### Dependency Injector
A dependency injector resolves the dependencies of your class and makes sure that the correct objects are injected when the class is instantiated.
My favorite injector is [Auryn](https://github.com/rdlowrey/Auryn), so install `rdlowrey/auryn` with composer or use one of the alternatives below:
[Pimple](http://pimple.sensiolabs.org/), [Orno DI](https://github.com/orno/di), [PHP-DI](https://github.com/mnapoli/PHP-DI)
to be continued...