Merge pull request #36 from Zvax/dep-inj
#35 slightly more logical grouping
This commit is contained in:
commit
5c550f371b
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ Install the Auryn package and then create a new file called `Dependencies.php` i
|
||||||
|
|
||||||
$injector = new \Auryn\Injector;
|
$injector = new \Auryn\Injector;
|
||||||
|
|
||||||
$injector->alias('Http\Response', 'Http\HttpResponse');
|
$injector->alias('Http\Request', 'Http\HttpRequest');
|
||||||
$injector->share('Http\HttpRequest');
|
$injector->share('Http\HttpRequest');
|
||||||
$injector->define('Http\HttpRequest', [
|
$injector->define('Http\HttpRequest', [
|
||||||
':get' => $_GET,
|
':get' => $_GET,
|
||||||
|
@ -23,7 +23,7 @@ $injector->define('Http\HttpRequest', [
|
||||||
':server' => $_SERVER,
|
':server' => $_SERVER,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$injector->alias('Http\Request', 'Http\HttpRequest');
|
$injector->alias('Http\Response', 'Http\HttpResponse');
|
||||||
$injector->share('Http\HttpResponse');
|
$injector->share('Http\HttpResponse');
|
||||||
|
|
||||||
return $injector;
|
return $injector;
|
||||||
|
|
Loading…
Reference in a new issue