*/
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));
}
// 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 /www/server/api/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:230 at Laravel\Lumen\Application->handleDispatcherResponse() (/www/server/api/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:170) at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}() at call_user_func() (/www/server/api/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:48) at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}() (/www/server/api/vendor/dingo/api/src/Http/Middleware/Request.php:111) at Dingo\Api\Http\Middleware\Request->handle() (/www/server/api/vendor/illuminate/pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() at call_user_func() (/www/server/api/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30) at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}() (/www/server/api/vendor/illuminate/pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then() (/www/server/api/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:423) at Laravel\Lumen\Application->sendThroughPipeline() (/www/server/api/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:172) at Laravel\Lumen\Application->dispatch() (/www/server/api/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:109) at Laravel\Lumen\Application->run() (/www/server/api/public/index.php:28) |