Merge pull request #36 from Zvax/dep-inj

#35 slightly more logical grouping
This commit is contained in:
Patrick Louys 2015-11-12 14:13:19 +01:00
commit 5c550f371b

View file

@ -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;