| 1 | <?php |
||
| 14 | class NotFoundDecorator implements MiddlewareInterface |
||
| 15 | { |
||
| 16 | use LayoutAwareTrait; |
||
| 17 | |||
| 18 | |||
| 19 | /** @var ViewEngine */ |
||
| 20 | private $viewEngine; |
||
| 21 | |||
| 22 | /** @var string $view */ |
||
| 23 | private $view; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * NotFoundDecorator constructor. |
||
| 27 | * @param ViewEngine $viewEngine |
||
| 28 | */ |
||
| 29 | public function __construct(ViewEngine $viewEngine) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $view |
||
| 37 | */ |
||
| 38 | protected function setView(string $view) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param ServerRequestInterface $request |
||
| 45 | * @param RequestHandlerInterface $handler |
||
| 46 | * @return ResponseInterface |
||
| 47 | */ |
||
| 48 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 61 | } |