vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Controller/SecurityWidgetController.php line 29

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Sylius package.
  4.  *
  5.  * (c) Paweł Jędrzejewski
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace Sylius\Bundle\ShopBundle\Controller;
  12. use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
  13. use Symfony\Component\HttpFoundation\Response;
  14. final class SecurityWidgetController
  15. {
  16.     /** @var EngineInterface */
  17.     private $templatingEngine;
  18.     public function __construct(EngineInterface $templatingEngine)
  19.     {
  20.         $this->templatingEngine $templatingEngine;
  21.     }
  22.     public function renderAction(): Response
  23.     {
  24.         return $this->templatingEngine->renderResponse('@SyliusShop/Menu/_security.html.twig');
  25.     }
  26. }