src/Controller/DefaultController.php line 25
<?phpnamespace App\Controller;use Doctrine\Persistence\ManagerRegistry;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\Security\Core\Security as CoreSecurity;class DefaultController extends AbstractController{protected $security;public function __construct(CoreSecurity $security){$this->security = $security;}/*** @Route("/", name="home")*/public function index(){if ($this->security->isGranted('ROLE_ADMIN')) {return $this->redirectToRoute('browser');} elseif ($this->security->isGranted('ROLE_USER')) {return $this->redirectToRoute('timetrackerVue');} else {return $this->redirectToRoute('login');}}/*** @Route("/dropzone")*/public function dropzone(){return $this->render('browser/dropzone.vue.html.twig', ['controller_name' => 'browser',]);}/*** @Route("/ldap")*/public function ldap(){return $this->render('base.html.twig', ['controller_name' => 'ldap',]);}}