class recreate extends command

Properties

protected user $user from  command

Methods

__construct(user $user)

Constructor

from  command
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:recreate.

Details

in command at line 30
__construct(user $user)

Constructor

Parameters

user $user

User instance (mostly for translation)

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

Sets the command name and description

Return Value

null

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

Executes the command thumbnail:recreate.

This command is a "macro" to execute thumbnail:delete and then thumbnail:generate.

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 if all is ok, 1 if a thumbnail couldn't be deleted.