class update_hashes extends command

Properties

protected user $user from  command
protected config $config
protected driver_interface $db
protected manager $passwords_manager
protected string $default_type

Methods

__construct(config $config, user $user, driver_interface $db, manager $passwords_manager, array $hashing_algorithms, array $defaults)

Update_hashes constructor

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

Create a styled progress bar

from  command
configure()

{@inheritdoc}

execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Details

at line 44
__construct(config $config, user $user, driver_interface $db, manager $passwords_manager, array $hashing_algorithms, array $defaults)

Update_hashes constructor

Parameters

config $config
user $user

User instance (mostly for translation)

driver_interface $db
manager $passwords_manager
array $hashing_algorithms

Hashing driver service collection

array $defaults

Default password types

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

{@inheritdoc}

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

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output