switched from uri to path

This commit is contained in:
Patrick 2014-09-17 22:14:25 +02:00
parent 38f6886933
commit 0cf4e70cae
2 changed files with 2 additions and 2 deletions

View file

@ -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"
},
```

View file

@ -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');