This commit is contained in:
Patrick 2015-09-02 19:26:20 +02:00
commit 22acd87bf6
2 changed files with 3 additions and 3 deletions

View file

@ -74,6 +74,6 @@ $routeDefinitionCallback = function (\FastRoute\RouteCollector $r) {
$dispatcher = \FastRoute\simpleDispatcher($routeDefinitionCallback);
```
This is already an improvement, but now all the handler code is in the `Routers.php` file. This is not optimal, so let's fix that in the next part.
This is already an improvement, but now all the handler code is in the `Routes.php` file. This is not optimal, so let's fix that in the next part.
[<< previous](04-http.md) | [next >>](06-dispatching-to-a-class.md)

View file

@ -11,7 +11,7 @@ Install the Auryn package and then create a new file called `Dependencies.php` i
```php
<?php
$injector = new \Auryn\Provider;
$injector = new \Auryn\Injector;
$injector->alias('Http\Response', 'Http\HttpResponse');
$injector->share('Http\HttpRequest');