switched from uri to path
This commit is contained in:
parent
38f6886933
commit
0cf4e70cae
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ Again, edit the `composer.json` to add the new component and then run `composer
|
|||
"require": {
|
||||
"php": ">=5.5.0",
|
||||
"filp/whoops": ">=1.1.2",
|
||||
"patricklouys/http": ">=1.0.2"
|
||||
"patricklouys/http": ">=1.0.3"
|
||||
},
|
||||
```
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ $dispatcher = \FastRoute\simpleDispatcher(function (\FastRoute\RouteCollector $r
|
|||
});
|
||||
});
|
||||
|
||||
$routeInfo = $dispatcher->dispatch($request->getMethod(), $request->getUri());
|
||||
$routeInfo = $dispatcher->dispatch($request->getMethod(), $request->getPath());
|
||||
switch ($routeInfo[0]) {
|
||||
case \FastRoute\Dispatcher::NOT_FOUND:
|
||||
$response->setContent('404 - Page not found');
|
||||
|
|
Loading…
Reference in a new issue