generate
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
in
command at line 45
ProgressBar
create_progress_bar(int $max, SymfonyStyle $io, OutputInterface $output, bool $message = false)
Create a styled progress bar
at line 76
protected null
configure()
Sets the command name and description
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.
at line 179
protected
commit_changes(array $thumbnail_created)
Commits the changes to the database