*/
protected function handleDispatcherResponse($routeInfo)
{
switch ($routeInfo[0]) {
case Dispatcher::NOT_FOUND:
throw new NotFoundHttpException;
case Dispatcher::METHOD_NOT_ALLOWED:
throw new MethodNotAllowedHttpException($routeInfo[1]);
case Dispatcher::FOUND:
return $this->handleFoundRoute($routeInfo);
}
if (isset($this->router->getRoutes()[$method.$pathInfo])) {
return $this->handleFoundRoute([true, $this->router->getRoutes()[$method.$pathInfo]['action'], []]);
}
return $this->handleDispatcherResponse(
$this->createDispatcher()->dispatch($method, $pathInfo)
);
});
} catch (Throwable $e) {
return $this->prepareResponse($this->sendExceptionToHandler($e));
}
NotFoundHttpException |
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: at /demo.lewinscy-nieruchomosci.pl/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:230 at Laravel\Lumen\Application->handleDispatcherResponse(array(0)) (/demo.lewinscy-nieruchomosci.pl/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:170) at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(object(Request)) (/demo.lewinscy-nieruchomosci.pl/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:426) at Laravel\Lumen\Application->sendThroughPipeline(array(), object(Closure)) (/demo.lewinscy-nieruchomosci.pl/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:172) at Laravel\Lumen\Application->dispatch(null) (/demo.lewinscy-nieruchomosci.pl/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:109) at Laravel\Lumen\Application->run() (/demo.lewinscy-nieruchomosci.pl/public/index.php:28) |