src/Controller/DefaultController.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Entity\Document;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\RedirectResponse;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Component\Routing\Annotation\Route;
  8. class DefaultController extends AbstractController
  9. {
  10.     /**
  11.      * @Route("/", name="app_index")
  12.      * @return RedirectResponse|Response
  13.      */
  14.     public function index()
  15.     {
  16.         return $this->redirectToRoute('app_user_redirect');
  17.     }
  18. }