| 1 | <?php |
||
| 19 | class NotFoundRouter implements MiddlewareInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * The logger. |
||
| 23 | * |
||
| 24 | * @var LoggerInterface |
||
| 25 | */ |
||
| 26 | private $log; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var Http404HandlerInterface |
||
| 30 | */ |
||
| 31 | private $pageNotFoundController; |
||
| 32 | |||
| 33 | public function __construct(Http404HandlerInterface $pageNotFoundController, LoggerInterface $log = null) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Process an incoming server request and return a response, optionally delegating |
||
| 41 | * to the next middleware component to create the response. |
||
| 42 | * |
||
| 43 | * @param Request $request |
||
| 44 | * @param DelegateInterface $delegate |
||
| 45 | * |
||
| 46 | * @return Response |
||
| 47 | */ |
||
| 48 | public function process(Request $request, DelegateInterface $delegate) |
||
| 62 | } |
||
| 63 |