🐛 fix(Command): Corrige le nom de la commande et évite la redondance d'event.

This commit is contained in:
Serreau Jovann
2025-11-17 13:44:15 +01:00
parent db87ec9e8c
commit 50a0c7f730

View File

@@ -16,7 +16,7 @@ use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
use Symfony\Component\Uid\Uuid;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
#[AsCommand(name: 'mainframe:admin')]
#[AsCommand(name: 'ecosplay:admin')]
class AccountCommand extends Command
{
public function __construct(
@@ -58,7 +58,6 @@ class AccountCommand extends Command
$io->success("Utilisateur administrateur créé avec succès.");
} else {
$this->eventDispatcher->dispatch(new CreatedAdminEvent($existingUser,""));
$io->warning("Un utilisateur avec l'email existe déjà.");
}