src/Controller/DashboardController.php line 12
<?phpnamespace App\Controller;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class DashboardController extends AbstractController{#[Route('/', name: 'app_dashboard')]public function index(): Response{if (empty($this->getUser())){return $this->redirectToRoute('app_login');}if ($this->getUser()->getCode() === 'ATEL') {return $this->redirectToRoute('packing_dashboard');}return $this->render('dashboard/index.html.twig', []);}}