changed di recommendation

This commit is contained in:
Patrick 2014-09-19 15:50:19 +02:00
parent 2b12237f12
commit 31b293c49b

View file

@ -4,8 +4,7 @@
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 these alternatives:
[Pimple](http://pimple.sensiolabs.org/), [Orno DI](https://github.com/orno/di), [PHP-DI](https://github.com/mnapoli/PHP-DI)
There is only one injector that I can recommend: [Auryn](https://github.com/rdlowrey/Auryn). Sadly all the alternatives that I am aware of are using the [service locator antipattern](http://blog.ploeh.dk/2010/02/03/ServiceLocatorisanAnti-Pattern/).
Create a new file called `Dependencies.php` in your `src/` folder. In there add the following content: