class MakeComponentCommand extends ConsoleCommand

Supports ability to create components by running make:component.

More information can be found here.

Traits

Wrapper class for InputInterface functions.

Properties

protected InputInterface $input

The Symfony InputInterface object.

from  ConsoleCommand
protected OutputInterface $output

The Symfony OutputInterface object.

from  ConsoleCommand

Methods

mixed
getArgument(mixed $argument)

Wrapper for InputInterface::getArgument function.

mixed
getOption(mixed $option)

Wrapper for InputInterface::getOption function.

bool
hasOption(string $name)

Wrapper for InputInterface::hasOption function.

int
execute(InputInterface $input, OutputInterface $output)

Implements execute from parent class.

int
handle()

Executes logic for command.

question()

Returns instance of the FrameworkQuestion class.

void
configure()

Configures the command.

Details

in ConsoleIO at line 16
mixed getArgument(mixed $argument)

Wrapper for InputInterface::getArgument function.

Parameters

mixed $argument

The argument.

Return Value

mixed

The value for the argument.

in ConsoleIO at line 26
mixed getOption(mixed $option)

Wrapper for InputInterface::getOption function.

Parameters

mixed $option

The option.

Return Value

mixed

The value for the option.

in ConsoleIO at line 36
bool hasOption(string $name)

Wrapper for InputInterface::hasOption function.

Parameters

string $name

The name for the option.

Return Value

bool

True if exists, otherwise false.

in ConsoleCommand at line 39
protected int execute(InputInterface $input, OutputInterface $output)

Implements execute from parent class.

Parameters

InputInterface $input

The Symfony InputInterface object.

OutputInterface $output

The Symfony OutputInterface object.

Return Value

int

A value that indicates success, invalid, or failure.

at line 41
protected int handle()

Executes logic for command.

Return Value

int

A value that indicates success, invalid, or failure.

in ConsoleCommand at line 57
protected FrameworkQuestion question()

Returns instance of the FrameworkQuestion class.

Return Value

FrameworkQuestion

The instance of the FrameworkQuestion class.

at line 19
protected void configure()

Configures the command.

Return Value

void