src/Pumukit/WebTVBundle/Controller/IndexController.php line 27

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Pumukit\WebTVBundle\Controller;
  4. use Pumukit\CoreBundle\Controller\WebTVControllerInterface;
  5. use Pumukit\WebTVBundle\Services\BreadcrumbsService;
  6. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  7. use Symfony\Component\HttpFoundation\Response;
  8. use Symfony\Component\Routing\Annotation\Route;
  9. class IndexController extends AbstractController implements WebTVControllerInterface
  10. {
  11.     protected $breadcrumbsService;
  12.     protected $menuShowStats;
  13.     public function __construct(BreadcrumbsService $breadcrumbsServicebool $menuShowStats)
  14.     {
  15.         $this->breadcrumbsService $breadcrumbsService;
  16.         $this->menuShowStats $menuShowStats;
  17.     }
  18.     /**
  19.      * @Route("/", name="pumukit_webtv_index_index")
  20.      */
  21.     public function indexAction(): Response
  22.     {
  23.         $this->breadcrumbsService->reset();
  24.         return $this->render('@PumukitWebTV/Index/template.html.twig', [
  25.             'menu_stats' => $this->menuShowStats,
  26.         ]);
  27.     }
  28. }