abstract class AbstractCommand extends Command

Properties

protected InputInterface $input
protected OutputInterface $output
protected int $isolatedExitCode

Methods

__construct(string|null $name = null)

No description

void
configureIsolation()

No description

int
execute(InputInterface $input, OutputInterface $output)

No description

CommandMutex
commandIsolationMutex()

No description

int
fire()

No description

bool
hasOption(string $name)

No description

void
info(string $message)

No description

void
comment(string $message)

No description

void
error(string $message)

Send an error or warning message to the user.

Details

__construct(string|null $name = null)

Parameters

string|null $name

protected void configureIsolation()

Return Value

void

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

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

protected CommandMutex commandIsolationMutex()

Return Value

CommandMutex

abstract protected int fire()

Return Value

int

protected bool hasOption(string $name)

Parameters

string $name

Return Value

bool

protected void info(string $message)

Parameters

string $message

Return Value

void

protected void comment(string $message)

Parameters

string $message

Return Value

void

protected void error(string $message)

Send an error or warning message to the user.

If possible, this will send the message via STDERR.

Parameters

string $message

Return Value

void