1 | <?php |
||
15 | class NotAllowedMiddleware implements MiddlewareInterface |
||
16 | { |
||
17 | public const TEMPLATE = 'not-allowed'; |
||
18 | |||
19 | protected $factory; |
||
20 | protected $renderer; |
||
21 | protected $template; |
||
22 | |||
23 | 2 | public function __construct(ResponseFactoryInterface $factory, RendererInterface $renderer, string $template = self::TEMPLATE) |
|
29 | |||
30 | 2 | public function process(ServerRequestInterface $req, RequestHandlerInterface $handler): ResponseInterface |
|
45 | } |