ListUsersCommand
class ListUsersCommand extends Command (View source)
A console command that lists all the existing users.
To use this command, open a terminal window, enter into your project directory and execute the following:
$ php bin/console app:list-users
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
void
configure()
{@inheritdoc}
int
execute(InputInterface $input, OutputInterface $output)
This method is executed after initialize(). It usually contains the logic to execute to complete this command task.
Details
__construct(MailerInterface $mailer, $emailSender, UserRepository $users)
protected void
configure()
{@inheritdoc}
protected int
execute(InputInterface $input, OutputInterface $output)
This method is executed after initialize(). It usually contains the logic to execute to complete this command task.