*/
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));
}
if ($this->manager->shouldBlock() ||
($request->route() instanceof Route && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
} else {
return $this->handleStatefulRequest($request, $session, $next);
}
}
/**
* Handle the given request within session state.
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
NotFoundHttpException |
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: at /home/daotaogiaovien.com/public_html/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:230 at Laravel\Lumen\Application->handleDispatcherResponse() (/home/daotaogiaovien.com/public_html/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:170) at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}() (/home/daotaogiaovien.com/public_html/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:48) at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}() (/home/daotaogiaovien.com/public_html/vendor/illuminate/session/Middleware/StartSession.php:121) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest() (/home/daotaogiaovien.com/public_html/vendor/illuminate/session/Middleware/StartSession.php:63) at Illuminate\Session\Middleware\StartSession->handle() (/home/daotaogiaovien.com/public_html/vendor/illuminate/pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() (/home/daotaogiaovien.com/public_html/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30) at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}() (/home/daotaogiaovien.com/public_html/vendor/illuminate/pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then() (/home/daotaogiaovien.com/public_html/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:423) at Laravel\Lumen\Application->sendThroughPipeline() (/home/daotaogiaovien.com/public_html/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:172) at Laravel\Lumen\Application->dispatch() (/home/daotaogiaovien.com/public_html/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:109) at Laravel\Lumen\Application->run() (/home/daotaogiaovien.com/public_html/public/index.php:15) |