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

508 B

<< previous

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, so install rdlowrey/auryn with composer or use one of the alternatives below:

Pimple, Orno DI, PHP-DI

to be continued...