From 593afd90a9047fb444154b5544378386854bf87f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 14 Oct 2025 11:59:28 +0200 Subject: [PATCH] Rename rapsys_blog route to rapsysblog New context layout --- Controller/DefaultController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Controller/DefaultController.php b/Controller/DefaultController.php index 6333b45..65f02fe 100644 --- a/Controller/DefaultController.php +++ b/Controller/DefaultController.php @@ -33,7 +33,7 @@ class DefaultController extends AbstractController { */ public function about(Request $request): Response { //Set page - $this->context['title'] = $this->translator->trans('About'); + $this->context['title']['page'] = $this->translator->trans('About'); //Set description $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary about page'); @@ -74,7 +74,7 @@ class DefaultController extends AbstractController { */ public function contact(Request $request): Response { //Set title - $this->context['title'] = $this->translator->trans('Contact'); + $this->context['title']['page'] = $this->translator->trans('Contact'); //Set description $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary contact page'); @@ -100,7 +100,7 @@ class DefaultController extends AbstractController { //Create the form according to the FormType created previously. //And give the proper parameters $form = $this->createForm('Rapsys\BlogBundle\Form\ContactType', $data, [ - 'action' => $this->generateUrl('rapsys_blog_contact'), + 'action' => $this->generateUrl('rapsysblog_contact'), 'method' => 'POST' ]); @@ -261,7 +261,7 @@ class DefaultController extends AbstractController { ); //Set title - $this->context['title'] = $this->translator->trans('Home'); + $this->context['title']['page'] = $this->translator->trans('Home'); //Set description $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary'); -- 2.41.3