Since: 4.0.0

class DeleteUserCommand extends AbstractCommand

Console command for deleting a user

Traits

DatabaseAwareTrait

Properties

static protected string Since: 4.0.0
$defaultName

The default command name

Methods

__construct(DatabaseInterface $db)

Command constructor.

int
doExecute(InputInterface $input, OutputInterface $output)

Internal function to execute the command.

string
getStringFromOption(string $option, string $question)

Method to get a value from option

void
configure()

Configure the command.

Details

__construct(DatabaseInterface $db)

Since: 4.2.0

Command constructor.

Parameters

DatabaseInterface $db

The database

protected int doExecute(InputInterface $input, OutputInterface $output)

Since: 4.0.0

Internal function to execute the command.

Parameters

InputInterface $input

The input to inject into the command.

OutputInterface $output

The output to inject into the command.

Return Value

int

The command exit code

protected string getStringFromOption(string $option, string $question)

Since: 4.0.0

Method to get a value from option

Parameters

string $option

set the option name

string $question

set the question if user enters no value to option

Return Value

string

protected void configure()

Since: 4.0.0

Configure the command.

Return Value

void