From 8272d5996e71218d63c7f4cf1d00e33747182020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Gagnon-Grenier?= Date: Wed, 11 Nov 2015 15:35:46 -0500 Subject: [PATCH] #35 slightly more logical grouping --- 08-dependency-injector.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/08-dependency-injector.md b/08-dependency-injector.md index d2dd08e..bb0bc83 100644 --- a/08-dependency-injector.md +++ b/08-dependency-injector.md @@ -13,7 +13,7 @@ Install the Auryn package and then create a new file called `Dependencies.php` i $injector = new \Auryn\Injector; -$injector->alias('Http\Response', 'Http\HttpResponse'); +$injector->alias('Http\Request', 'Http\HttpRequest'); $injector->share('Http\HttpRequest'); $injector->define('Http\HttpRequest', [ ':get' => $_GET, @@ -23,7 +23,7 @@ $injector->define('Http\HttpRequest', [ ':server' => $_SERVER, ]); -$injector->alias('Http\Request', 'Http\HttpRequest'); +$injector->alias('Http\Response', 'Http\HttpResponse'); $injector->share('Http\HttpResponse'); return $injector;