<?phpnamespace App\Controller;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Request;use Symfony\Component\Routing\Annotation\Route;class DefaultController extends AbstractController{ /** * @return \Symfony\Component\HttpFoundation\RedirectResponse * * @Route("/", name="homepage") */ public function indexAction() { //$this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY'); return $this->redirectToRoute("employee", []); }}