]> Raphaël G. Git Repositories - blogbundle/commitdiff
Rename rapsys_blog route to rapsysblog
authorRaphaël Gertz <git@rapsys.eu>
Tue, 14 Oct 2025 10:00:43 +0000 (12:00 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 14 Oct 2025 10:00:43 +0000 (12:00 +0200)
New context layout

Controller/ArticleController.php
Controller/KeywordController.php
Controller/UserController.php

index 9cdb2479ad8275584431bc1205c1ffb8b5f1a9f4..68e3216757142532e9ad5b982e17cbdbaa044a6e 100644 (file)
@@ -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'];
index d4649a04e0f8e33428e2130938bdb20c579ac4d0..b0c9eb2e594fa4e07a8efe9c27c3625669b5870c 100644 (file)
@@ -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'];
index ed6109cde2a0cf83e9982e517c2de5405a4de9f6..a4e2e575c32779b7c29f9348a51b0c8cf0d64f7f 100644 (file)
@@ -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 ?