src/Controller/Main/DefaultController.php line 11
<?phpnamespace App\Controller\Main;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class DefaultController extends AbstractController{public function appRouter(): Response{// bu fos js routing e aktarıyor hatalıif (!$this->getUser()) {return $this->redirectToRoute("app_login");}$roles = $this->getUser()->getRoles();if ($this->isGranted("ROLE_ADMIN")) {return $this->redirectToRoute("admin_user");} else if ($this->isGranted("ROLE_KULLANICI")) {return $this->redirectToRoute("main_index");} else {return $this->redirectToRoute("app_login");}}}