function GenerateUsersCommand::__invoke
Create users.
The arguments and options are read from the input by the plugin.
File
-
devel_generate/
src/ Command/ GenerateUsersCommand.php, line 35
Class
- GenerateUsersCommand
- Create users.
Namespace
Drupal\devel_generate\CommandCode
public function __invoke(InputInterface $input, OutputInterface $output, #[Argument('Number of users to generate.')] string $num = '50', #[Option('Delete all users before generating new ones.')] bool $kill = FALSE, #[Option('A comma delimited list of role IDs for new users. Don\'t specify authenticated.')] ?string $roles = NULL, #[Option('Specify a password to be set for all generated users.')] ?string $pass = NULL) : int {
return $this->generate(self::PLUGIN_ID, $input, $output);
}