src/Controller/HomeController.php line 35

Open in your IDE?
  1. <?php
  2. namespace Eadmin\Controller;
  3. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. use Eadmin\Entity\Client;
  7. use Eadmin\Enum\ErrorEnum;
  8. /**
  9.  * @Route(
  10.  *      schemes         = {"https"}
  11.  * )
  12.  * @Cache(
  13.  *      maxage          = "0",
  14.  *      smaxage         = "0",
  15.  *      expires         = "now",
  16.  *      public          = false
  17.  * )
  18.  */
  19. class HomeController extends AbstractController {
  20.     public function getEntityClass(){
  21.         return Client::class;
  22.     }
  23.     /**
  24.      * @Route(
  25.      *      path          = "/not-found",
  26.      *      name          = "notFound",
  27.      *      methods       = {"GET"}
  28.      * )
  29.      */
  30.     public function notFoundPage(Request $request) {
  31.         return $this->renderEAD('not.found.html.twig');
  32.     }
  33. }