src/WellCommerce/Bundle/AppBundle/Controller/Front/HomePageController.php line 34

Open in your IDE?
  1. <?php
  2. declare(strict_types=0);
  3. /*
  4.  * WellCommerce Foundation
  5.  *
  6.  * This file is part of the WellCommerce package.
  7.  *
  8.  * (c) Adam Piotrowski <adam@wellcommerce.org>, Adrian Potepa <adrian@wellcommerce.org>
  9.  *
  10.  * For the full copyright and license information,
  11.  * please view the LICENSE file that was distributed with this source code.
  12.  */
  13. namespace WellCommerce\Bundle\AppBundle\Controller\Front;
  14. use Symfony\Component\HttpFoundation\Response;
  15. use Symfony\Component\Routing\Annotation\Route;
  16. use WellCommerce\Bundle\AppBundle\Service\Shop\Storage\ShopStorage;
  17. use WellCommerce\Bundle\CoreBundle\Controller\Front\AbstractFrontController;
  18. /**
  19.  * Class HomePageController
  20.  *
  21.  * @author  Adam Piotrowski <adam@wellcommerce.org>
  22.  *
  23.  */
  24. class HomePageController extends AbstractFrontController
  25. {
  26.     /**
  27.      * @Route("/", name="front.home_page.index")
  28.      */
  29.     public function indexAction(ShopStorage $storage): Response
  30.     {
  31.         $currentShop $storage->getCurrentShop();
  32.         $this->getMetadataHelper()->setMetadata($currentShop->translate()->getMeta());
  33.         return $this->displayTemplate('index');
  34.     }
  35. }