class set_atomic extends command

Properties

protected user $user from  command
protected config $config from  command

Methods

__construct(user $user, config $config)

Constructor

from  command
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 config:set-atomic.

Details

in command at line 20
__construct(user $user, config $config)

Constructor

Parameters

user $user

User instance (mostly for translation)

config $config

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

{@inheritdoc}

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

Executes the command config:set-atomic.

Sets a configuration option's value only if the old_value matches the current configuration value or the configuration value does not exist yet.

Parameters

InputInterface $input

An InputInterface instance

OutputInterface $output

An OutputInterface instance

Return Value

int

0 if the value was changed, 1 otherwise.

See also

config::set_atomic