src/Application/Controller/HomeController.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Application\Controller;
  3. use App\Admin\Document\Chain;
  4. use App\Admin\Document\Hub;
  5. use AvenueAdminBundle\Filter\MongoDB\StringFilter;
  6. use AvenueAdminBundle\Util\FileUtil;
  7. use Symfony\Component\HttpFoundation\JsonResponse;
  8. use Symfony\Component\HttpFoundation\Request;
  9. use Symfony\Component\HttpFoundation\Response;
  10. use \Symfony\Component\Routing\Annotation\Route;
  11. class HomeController extends AbstractController
  12. {
  13.     /**
  14.      * @Route("/", name="home")
  15.      */
  16.     public function home(): Response
  17.     {
  18.         if (!$this->hasIdentity()) {
  19.             return $this->redirectToRoute('hubs');
  20.         }
  21.         return $this->render(
  22.             'application/home/index.html.twig', [
  23.             ]
  24.         );
  25.     }
  26. }