src/Dispatcher.php
protected function setMethodNotAllowedDecoratorMiddleware(array $allowed) : void
    {
        $middleware = $this->getStrategy()->getMethodNotAllowedDecorator(
            new MethodNotAllowedException($allowed)
        );

        $this->prependMiddleware($middleware);
    }
protected function setMethodNotAllowedDecoratorMiddleware(array $allowed) : void
    {
        $middleware = $this->getStrategy()->getMethodNotAllowedDecorator(
            new MethodNotAllowedException($allowed)
        );

        $this->prependMiddleware($middleware);
    }
protected function setMethodNotAllowedDecoratorMiddleware ( array $ allowed ) : void { $ middleware = $ this -> getStrategy ( ) -> getMethodNotAllowedDecorator ( new MethodNotAllowedException ( $ allowed ) ) ; $ this -> prependMiddleware ( $ middleware ) ; }
Set up middleware for a not allowed route

@param array $allowed

@return void
Set up middleware for a not allowed route