abstract class AbstractCommand extends Command

Properties

protected InputInterface $input
protected OutputInterface $output

Methods

execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

fire()

Fire the command.

bool
hasOption(string $name)

Did the user pass the given option?

info(string $message)

Send an info message to the user.

error(string $message)

Send an error or warning message to the user.

Details

protected execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output

abstract protected fire()

Fire the command.

protected bool hasOption(string $name)

Did the user pass the given option?

Parameters

string $name

Return Value

bool

protected info(string $message)

Send an info message to the user.

Parameters

string $message

protected error(string $message)

Send an error or warning message to the user.

If possible, this will send the message via STDERR.

Parameters

string $message