]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Controller/AbstractController.php
Fix confirm route user controller method
[userbundle] / Controller / AbstractController.php
index 8750a20d2c6e85c01dbe8865350d80ff6761e3d4..043a9594dec9d9d235fea05a6d0223edd2127c62 100644 (file)
@@ -14,6 +14,10 @@ namespace Rapsys\UserBundle\Controller;
 use Doctrine\ORM\EntityManagerInterface;
 use Doctrine\Persistence\ManagerRegistry;
 
+use Rapsys\PackBundle\Util\SluggerUtil;
+
+use Rapsys\UserBundle\RapsysUserBundle;
+
 use Psr\Container\ContainerInterface;
 use Psr\Log\LoggerInterface;
 
@@ -36,14 +40,10 @@ use Symfony\Contracts\Translation\TranslatorInterface;
 
 use Twig\Environment;
 
-use Rapsys\PackBundle\Util\SluggerUtil;
-
-use Rapsys\UserBundle\RapsysUserBundle;
-
 /**
- * Provides common features needed in controllers.
- *
  * {@inheritdoc}
+ *
+ * Provides common features needed in controllers.
  */
 abstract class AbstractController extends BaseAbstractController implements ServiceSubscriberInterface {
        /**
@@ -268,9 +268,9 @@ abstract class AbstractController extends BaseAbstractController implements Serv
        }
 
        /**
-        * Renders a view
-        *
         * {@inheritdoc}
+        *
+        * Renders a view
         */
        protected function render(string $view, array $parameters = [], Response $response = null): Response {
                //Create response when null
@@ -282,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);