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); $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) [<< 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
<?php <?php
$injector = new \Auryn\Provider; $injector = new \Auryn\Injector;
$injector->alias('Http\Response', 'Http\HttpResponse'); $injector->alias('Http\Response', 'Http\HttpResponse');
$injector->share('Http\HttpRequest'); $injector->share('Http\HttpRequest');
@ -94,4 +94,4 @@ As you can see now the class has two dependencies. Try to access the page with a
Congratulations, you have now successfully laid the groundwork for your application. Congratulations, you have now successfully laid the groundwork for your application.
[<< previous](07-inversion-of-control.md) | [next >>](09-templating.md) [<< previous](07-inversion-of-control.md) | [next >>](09-templating.md)