From 27cb2d1871b492f7360a12858ed3364f7557265a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 14 Oct 2025 12:00:43 +0200 Subject: [PATCH] Rename rapsys_blog route to rapsysblog New context layout --- Controller/ArticleController.php | 6 +++--- Controller/KeywordController.php | 6 +++--- Controller/UserController.php | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Controller/ArticleController.php b/Controller/ArticleController.php index 9cdb247..68e3216 100644 --- a/Controller/ArticleController.php +++ b/Controller/ArticleController.php @@ -104,7 +104,7 @@ class ArticleController extends AbstractController { ); //Set title - $this->context['title'] = $this->translator->trans('Articles list'); + $this->context['title']['page'] = $this->translator->trans('Articles list'); //Set description $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary article listing'); @@ -133,7 +133,7 @@ class ArticleController extends AbstractController { //With invalid slug if ($slug !== $this->context['article']['slug']) { //Redirect on correctly spelled article - return $this->redirectToRoute('rapsys_blog_article_view', ['id' => $this->context['article']['id'], 'slug' => $this->context['article']['slug']], Response::HTTP_MOVED_PERMANENTLY); + return $this->redirectToRoute('rapsysblog_article_view', ['id' => $this->context['article']['id'], 'slug' => $this->context['article']['slug']], Response::HTTP_MOVED_PERMANENTLY); } //Set modified @@ -194,7 +194,7 @@ class ArticleController extends AbstractController { ); //Set title - $this->context['title'] = $this->context['article']['title']; + $this->context['title']['page'] = $this->context['article']['title']; //Set description $this->context['description'] = $this->context['article']['description']; diff --git a/Controller/KeywordController.php b/Controller/KeywordController.php index d4649a0..b0c9eb2 100644 --- a/Controller/KeywordController.php +++ b/Controller/KeywordController.php @@ -98,7 +98,7 @@ class KeywordController extends AbstractController { ); //Set title - $this->context['title'] = $this->translator->trans('Keywords list'); + $this->context['title']['page'] = $this->translator->trans('Keywords list'); //Set description $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary keyword listing'); @@ -127,7 +127,7 @@ class KeywordController extends AbstractController { //With invalid slug if ($slug !== $this->context['keyword']['slug']) { //Redirect on correctly spelled keyword - return $this->redirectToRoute('rapsys_blog_keyword_view', ['id' => $this->context['keyword']['id'], 'slug' => $this->context['keyword']['slug']], Response::HTTP_MOVED_PERMANENTLY); + return $this->redirectToRoute('rapsysblog_keyword_view', ['id' => $this->context['keyword']['id'], 'slug' => $this->context['keyword']['slug']], Response::HTTP_MOVED_PERMANENTLY); } //Set modified @@ -191,7 +191,7 @@ class KeywordController extends AbstractController { ); //Set title - $this->context['title'] = $this->context['keyword']['title']; + $this->context['title']['page'] = $this->context['keyword']['title']; //Set description $this->context['description'] = $this->context['keyword']['description']; diff --git a/Controller/UserController.php b/Controller/UserController.php index ed6109c..a4e2e57 100644 --- a/Controller/UserController.php +++ b/Controller/UserController.php @@ -111,7 +111,7 @@ class UserController extends AbstractController { ); //Set title - $this->context['title'] = $this->translator->trans('Users list'); + $this->context['title']['page'] = $this->translator->trans('Users list'); //Set description $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary user listing'); @@ -140,7 +140,7 @@ class UserController extends AbstractController { //With invalid slug if ($slug !== $this->context['user']['slug']) { //Redirect on correctly spelled user - return $this->redirectToRoute('rapsys_blog_user_view', ['id' => $this->context['user']['id'], 'slug' => $this->context['user']['slug']], Response::HTTP_MOVED_PERMANENTLY); + return $this->redirectToRoute('rapsysblog_user_view', ['id' => $this->context['user']['id'], 'slug' => $this->context['user']['slug']], Response::HTTP_MOVED_PERMANENTLY); } //Set modified @@ -207,7 +207,7 @@ class UserController extends AbstractController { ); //Set title - $this->context['title'] = $this->context['user']['pseudonym']; + $this->context['title']['page'] = $this->context['user']['pseudonym']; //Set description //TODO: Add user creation ? Add a description field ? -- 2.41.3