src/Controller/Privado/DashboardController.php line 36

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Privado;
  3. use App\Utils\FilterSession;
  4. use App\Utils\HelperUtil;
  5. use Doctrine\ORM\EntityManagerInterface;
  6. use Knp\Component\Pager\PaginatorInterface;
  7. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  8. use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
  9. use Symfony\Component\HttpFoundation\Request;
  10. use Symfony\Component\HttpFoundation\Response;
  11. use Symfony\Component\Routing\Annotation\Route;
  12. use WhiteOctober\BreadcrumbsBundle\Model\Breadcrumbs;
  13. class DashboardController extends AbstractController
  14. {
  15.     protected $em;
  16.     protected $bd;
  17.     protected $bag;
  18.     protected $pag;
  19.     protected $hlp;
  20.     public function __construct(EntityManagerInterface $emBreadcrumbs $bdPaginatorInterface $pgHelperUtil $hlpParameterBagInterface $pb)
  21.     {
  22.         $this->em $em;
  23.         $this->bd $bd;
  24.         $this->bag $pb;
  25.         $this->pag $pg;
  26.         $this->hlp $hlp;
  27.     }
  28.     /**
  29.      * @Route("/", name="index", options={"expose"=true})
  30.      */
  31.     public function indexAction(Request $request): Response
  32.     {
  33.         return $this->render('pages/privado/dashboard.html.twig', [
  34.             'title' => 'Dashboard',
  35.         ]);
  36.     }
  37. }