]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Controller/AbstractController.php
Remove getAlias member function
[userbundle] / Controller / AbstractController.php
index a859e5a20ce40f2740cdac4a201e0d961445a7dc..8a0a2c824e506e8b152445f7dc67008fef6d94d3 100644 (file)
@@ -66,6 +66,11 @@ abstract class AbstractController extends BaseAbstractController implements Serv
         */
        protected int $page;
 
         */
        protected int $page;
 
+       /**
+        * Request instance
+        */
+       protected Request $request;
+
        /**
         * Abstract constructor
         *
        /**
         * Abstract constructor
         *
@@ -277,17 +282,6 @@ abstract class AbstractController extends BaseAbstractController implements Serv
                        $parameters['locale'] = $this->locale;
                }
 
                        $parameters['locale'] = $this->locale;
                }
 
-               /*TODO: XXX: to drop, we have title => [ 'page' => XXX, section => XXX, site => XXX ]
-               //With empty head title and section
-               if (empty($parameters['head']['title']) && !empty($parameters['section'])) {
-                       //Set head title
-                       $parameters['title'] = implode(' - ', [$parameters['title'], $parameters['section'], $parameters['head']['site']]);
-               //With empty head title
-               } elseif (empty($parameters['head']['title'])) {
-                       //Set head title
-                       $parameters['head']['title'] = implode(' - ', [$parameters['title'], $parameters['head']['site']]);
-               }*/
-
                //Call twig render method
                $content = $this->twig->render($view, $parameters);
 
                //Call twig render method
                $content = $this->twig->render($view, $parameters);