class purge extends command

Properties

protected user $user from  command
protected driver_interface $cache
protected driver_interface $db
protected auth $auth
protected log_interface $log
protected config $config

Methods

__construct(user $user, driver_interface $cache, driver_interface $db, auth $auth, log_interface $log, config $config)

Constructor

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

Create a styled progress bar

from  command
configure()

{@inheritdoc}

int
execute(InputInterface $input, OutputInterface $output)

Executes the command cache:purge.

Details

at line 47
__construct(user $user, driver_interface $cache, driver_interface $db, auth $auth, log_interface $log, config $config)

Constructor

Parameters

user $user

User instance (mostly for translation)

driver_interface $cache

Cache instance

driver_interface $db

Database connection

auth $auth

Auth instance

log_interface $log

Logger instance

config $config

Config instance

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

{@inheritdoc}

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

Executes the command cache:purge.

Purge the cache (including permissions) and increment the asset_version number

Parameters

InputInterface $input

An InputInterface instance

OutputInterface $output

An OutputInterface instance

Return Value

int