svg
This commit is contained in:
@ -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");
|
||||
|
@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user