<?php
declare(strict_types=1);
namespace Hitso\Bundle\CommonBundle\Controller\Front;
use Hitso\Bundle\CommonBundle\Controller\Controller;
use Hitso\Bundle\SeoBundle\Entity\SeoPage;
use Symfony\Component\HttpFoundation\Response;
/**
* Class HomePageController
*
* @package Hitso\Bundle\CommonBundle\Controller\Front
*/
class HomePageController extends Controller
{
public function indexAction(): Response
{
$content = $this->getManagerForClass(SeoPage::class)->getRepository()->findOneBy(['route' => 'homepage']);
if ($content) {
$this->updateSeoPage($content);
}
return $this->displayTemplate('index');
}
}