*/ 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 /var/www/html/polls-back/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:230
at Laravel\Lumen\Application->handleDispatcherResponse()
(/var/www/html/polls-back/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:170)
at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}()
at call_user_func()
(/var/www/html/polls-back/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:48)
at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}()
(/var/www/html/polls-back/app/Http/Middleware/CorsMiddleware.php:29)
at App\Http\Middleware\CorsMiddleware->handle()
(/var/www/html/polls-back/vendor/illuminate/pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
at call_user_func()
(/var/www/html/polls-back/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30)
at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}()
(/var/www/html/polls-back/vendor/illuminate/pipeline/Pipeline.php:103)
at Illuminate\Pipeline\Pipeline->then()
(/var/www/html/polls-back/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:423)
at Laravel\Lumen\Application->sendThroughPipeline()
(/var/www/html/polls-back/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:172)
at Laravel\Lumen\Application->dispatch()
(/var/www/html/polls-back/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:109)
at Laravel\Lumen\Application->run()
(/var/www/html/polls-back/public/index.php:28)
|