getSession()->get('company'); $accountings = $accountingRepository->findBy(['company' => $company, 'category' => 'actif'], ['num01' => 'ASC', 'num02' => 'ASC']); return $this->render('home/home.html.twig', [ 'usemenu' => true, 'usesidebar' => false, 'accountings' => $accountings, ]); } #[Route('/admin', name: 'app_admin')] public function admin(): Response { return $this->render('home/home.html.twig', [ 'usemenu' => true, 'usesidebar' => true, ]); } #[Route('/user/nocompany', name: 'app_user_nocompany')] public function nocompany(): Response { return $this->render('home/nocompany.html.twig', [ 'usemenu' => true, 'usesidebar' => false, ]); } }