<?php
declare(strict_types=0);
/*
* WellCommerce Foundation
*
* This file is part of the WellCommerce package.
*
* (c) Adam Piotrowski <adam@wellcommerce.org>, Adrian Potepa <adrian@wellcommerce.org>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace WellCommerce\Bundle\AppBundle\Controller\Front;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use WellCommerce\Bundle\AppBundle\Service\Shop\Storage\ShopStorage;
use WellCommerce\Bundle\CoreBundle\Controller\Front\AbstractFrontController;
/**
* Class HomePageController
*
* @author Adam Piotrowski <adam@wellcommerce.org>
*
*/
class HomePageController extends AbstractFrontController
{
/**
* @Route("/", name="front.home_page.index")
*/
public function indexAction(ShopStorage $storage): Response
{
$currentShop = $storage->getCurrentShop();
$this->getMetadataHelper()->setMetadata($currentShop->translate()->getMeta());
return $this->displayTemplate('index');
}
}