finished router part
This commit is contained in:
parent
dcdeaa0f7e
commit
53c4e1e618
4 changed files with 11 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
[<< previous](4-http.md)
|
||||
[<< previous](4-http.md) | [next >>](6-controllers.md)
|
||||
|
||||
### Router
|
||||
|
||||
|
@ -72,6 +72,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.
|
||||
|
||||
|
||||
to be continued...
|
||||
[<< previous](4-http.md) | [next >>](6-controllers.md)
|
Loading…
Add table
Add a link
Reference in a new issue