Orno\Route\Dispatcher::handleNotAllowed PHP 메소드

handleNotAllowed() 보호된 메소드

Handles a not allowed route
protected handleNotAllowed ( array $allowed ) : Orno\Http\ResponseInterface
$allowed array
리턴 Orno\Http\ResponseInterface
    protected function handleNotAllowed(array $allowed)
    {
        $exception = new HttpException\MethodNotAllowedException($allowed);
        if ($this->getStrategy() === RouteStrategyInterface::RESTFUL_STRATEGY) {
            return $exception->getJsonResponse();
        }
        throw $exception;
    }