15 lines
No EOL
413 B
PHP
15 lines
No EOL
413 B
PHP
<?php
|
|
|
|
use Slim\Http\Request;
|
|
use Slim\Http\Response;
|
|
|
|
final class NotFoundAction extends AbstractAction
|
|
{
|
|
public function __invoke(Request $request, Response $response, $args)
|
|
{
|
|
return $this->view->render($response, 'error.twig', [
|
|
'title' => $this->translator->trans('error.404.title'),
|
|
'content' => $this->translator->trans('error.404.content')
|
|
]);
|
|
}
|
|
} |