src/Controller/CockpitController.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
  6. /**
  7.  * This is main Cockpit controller.
  8.  * 
  9.  * @Security("is_granted('IS_AUTHENTICATED_FULLY')")
  10.  */
  11. class CockpitController extends AbstractController
  12. {
  13.     /**
  14.      * @Route("/", name="cockpit")
  15.      */
  16.     public function index()
  17.     {
  18.         return $this->redirectToRoute('roles_index');
  19.     }
  20. }