DeleteUserCommand
class DeleteUserCommand extends Command (View source)
A console command that deletes users from the database.
To use this command, open a terminal window, enter into your project directory and execute the following:
$ php bin/console app:delete-user
Check out the code of the src/App/Command/AddUserCommand.php file for the full explanation about Symfony commands.
See https://symfony.com/doc/current/cookbook/console/console_command.html For more advanced uses, commands can be defined as services too. See https://symfony.com/doc/current/console/commands_as_services.html
Properties
static protected | $defaultName |
Methods
__construct(EntityManagerInterface $em, ValidatorInterface $validator, UserRepository $users)
No description
void
configure()
{@inheritdoc}
void
initialize(InputInterface $input, OutputInterface $output)
No description
void
interact(InputInterface $input, OutputInterface $output)
No description
int
execute(InputInterface $input, OutputInterface $output)
No description
Details
__construct(EntityManagerInterface $em, ValidatorInterface $validator, UserRepository $users)
protected void
configure()
{@inheritdoc}