X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/f4334bf103ec3b821270b61e270f9222a5c3d495..32b9912accd3c35c7830a068af7de189bdde7136:/Controller/AbstractController.php?ds=inline diff --git a/Controller/AbstractController.php b/Controller/AbstractController.php index a859e5a..8a0a2c8 100644 --- a/Controller/AbstractController.php +++ b/Controller/AbstractController.php @@ -66,6 +66,11 @@ abstract class AbstractController extends BaseAbstractController implements Serv */ protected int $page; + /** + * Request instance + */ + protected Request $request; + /** * Abstract constructor * @@ -277,17 +282,6 @@ abstract class AbstractController extends BaseAbstractController implements Serv $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);