<?php
namespace App\Controller\Privado;
use App\Utils\FilterSession;
use App\Utils\HelperUtil;
use Doctrine\ORM\EntityManagerInterface;
use Knp\Component\Pager\PaginatorInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use WhiteOctober\BreadcrumbsBundle\Model\Breadcrumbs;
class DashboardController extends AbstractController
{
protected $em;
protected $bd;
protected $bag;
protected $pag;
protected $hlp;
public function __construct(EntityManagerInterface $em, Breadcrumbs $bd, PaginatorInterface $pg, HelperUtil $hlp, ParameterBagInterface $pb)
{
$this->em = $em;
$this->bd = $bd;
$this->bag = $pb;
$this->pag = $pg;
$this->hlp = $hlp;
}
/**
* @Route("/", name="index", options={"expose"=true})
*/
public function indexAction(Request $request): Response
{
return $this->render('pages/privado/dashboard.html.twig', [
'title' => 'Dashboard',
]);
}
}