From 8d3b3ee1e3f5c7565799ee63583c9d2d72be7ae5 Mon Sep 17 00:00:00 2001 From: Patrick Louys Date: Tue, 1 Nov 2016 16:29:36 +0100 Subject: [PATCH] Update 08-dependency-injector.md --- 08-dependency-injector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/08-dependency-injector.md b/08-dependency-injector.md index bb0bc83..d7e583f 100644 --- a/08-dependency-injector.md +++ b/08-dependency-injector.md @@ -4,7 +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. -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/). +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/) in their documentation and examples. Install the Auryn package and then create a new file called `Dependencies.php` in your `src/` folder. In there add the following content: