switched from uri to path

This commit is contained in:
Patrick 2014-09-17 22:14:25 +02:00 committed by lubiana
parent 7687430549
commit e8a11299ce
2 changed files with 2 additions and 2 deletions

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