<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
class NotFoundController extends AbstractController
{
public function __construct(
protected ParameterBagInterface $parameters
)
{}
/**
* @Route("/{_locale}/404",name="app_error_404", methods={"GET"})
*/
public function errorPageNotFound(): Response
{
return $this->render('error/error404.html.twig', [
"locales" => $this->parameters->get('app.locales'),
]);
}
}