class generate extends command

Properties

protected user $user from  command
protected config $config
protected driver_interface $db
protected service $cache
protected string $phpbb_root_path

phpBB root path

protected string $php_ext

PHP extension.

Methods

__construct(config $config, user $user, driver_interface $db, service $cache, string $phpbb_root_path, string $php_ext)

Constructor

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 thumbnail:generate.

commit_changes(array $thumbnail_created)

Commits the changes to the database

Details

at line 60
__construct(config $config, user $user, driver_interface $db, service $cache, string $phpbb_root_path, string $php_ext)

Constructor

Parameters

config $config

The config

user $user

User instance (mostly for translation)

driver_interface $db

Database connection

service $cache

The cache service

string $phpbb_root_path

Root path

string $php_ext

PHP extension

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 76
protected null configure()

Sets the command name and description

Return Value

null

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

Executes the command thumbnail:generate.

Generate a thumbnail for all attachments which need one and don't have it yet.

Parameters

InputInterface $input

The input stream used to get the argument and verboe option.

OutputInterface $output

The output stream, used for printing verbose-mode and error information.

Return Value

int 0.

at line 179
protected commit_changes(array $thumbnail_created)

Commits the changes to the database

Parameters

array $thumbnail_created