qMerge branch 'master' of https://github.com/PatrickLouys/no-framework-tutorial
This commit is contained in:
commit
22acd87bf6
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue