This commit is contained in:
2024-11-22 08:47:33 +01:00
parent 1289b22a93
commit 0729b81d06
6 changed files with 151 additions and 55 deletions

View File

@ -56,8 +56,9 @@ class InitCommand extends Command
$user->setUsername("admin");
$user->setPassword($hashedPassword);
$this->em->persist($user);
$this->em->flush();
}
$user->setRoles(["ROLE_ADMIN"]);
$this->em->flush();
// Création d'un company par defaut
$io->text("> Création d'un company par defaut");

View File

@ -12,7 +12,8 @@ class HomeController extends AbstractController
public function index(): Response
{
return $this->render('home/index.html.twig', [
'controller_name' => 'HomeController',
]);
'usemenu' => true,
'usesidebar' => true,
]);
}
}