class activate extends command

Properties

protected user $user from  command
protected config $config
protected language $language
protected log_interface $log
protected manager $notifications
protected user_loader $user_loader
protected string $phpbb_root_path

phpBB root path

protected string $php_ext

PHP extension.

Methods

__construct(user $user, config $config, language $language, log_interface $log, manager $notifications, user_loader $user_loader, string $phpbb_root_path, string $php_ext)

Construct method

ProgressBar
create_progress_bar(int $max, SymfonyStyle $io, OutputInterface $output, bool $message = false)

Create a styled progress bar

from  command
null
configure()

Sets the command name and description

int
execute(InputInterface $input, OutputInterface $output)

Executes the command user:activate

null
send_notification(array $user_row, InputInterface $input)

Send account activation notification to user

Details

at line 73
__construct(user $user, config $config, language $language, log_interface $log, manager $notifications, user_loader $user_loader, string $phpbb_root_path, string $php_ext)

Construct method

Parameters

user $user

User instance (mostly for translation)

config $config
language $language
log_interface $log
manager $notifications
user_loader $user_loader
string $phpbb_root_path
string $php_ext

in command at line 45
ProgressBar create_progress_bar(int $max, SymfonyStyle $io, OutputInterface $output, bool $message = false)

Create a styled progress bar

Parameters

int $max

Max value for the progress bar

SymfonyStyle $io

Symfony style output decorator

OutputInterface $output

The output stream, used to print messages

bool $message

Should we display message output under the progress bar?

Return Value

ProgressBar

at line 92
protected null configure()

Sets the command name and description

Return Value

null

at line 128
protected int execute(InputInterface $input, OutputInterface $output)

Executes the command user:activate

Activate (or deactivate) a user account

Parameters

InputInterface $input

The input stream used to get the options

OutputInterface $output

The output stream, used to print messages

Return Value

int

0 if all is well, 1 if any errors occurred

at line 191
protected null send_notification(array $user_row, InputInterface $input)

Send account activation notification to user

Parameters

array $user_row

The user data array

InputInterface $input

The input stream used to get the options

Return Value

null