X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/f4334bf103ec3b821270b61e270f9222a5c3d495..09388c0e8247c60b1f01360944d9ad416810b77b:/Controller/AbstractController.php?ds=sidebyside 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);