🐛 fix(Command): Corrige le nom de la commande et évite la redondance d'event.
This commit is contained in:
@@ -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à.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user