src/Controller/CoreController.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Util\VaciFacilController;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class CoreController extends VaciFacilController
  8. {
  9.     /**
  10.      * @Route("/", name="home")
  11.      * @return Response
  12.      */
  13.     public function home(): Response
  14.     {
  15.         return $this->render(self::TEMPLATE_BASE$this->getTemplateParameters());
  16.     }
  17.     /**
  18.      * @Route(
  19.      *     "/{menu}/{item}/{action}",
  20.      *     methods={"GET", "POST"},
  21.      *     name="vaciFacil",
  22.      *     requirements={"menu"="vaciFacil"}
  23.      * )
  24.      * @param Request $request
  25.      * @return Response
  26.      */
  27.     public function vaciFacil(Request $request): Response
  28.     {
  29.         return $this->defaultHandler($request);
  30.     }
  31. }