interface Application

Methods

getHypervel()

Get the Hypervel application instance.

Command|null
add(Command $command)

Add a command to the application.

array
all(string|null $namespace = null)

Get all of the commands registered with the application.

int
run(InputInterface|null $input = null, OutputInterface|null $output = null)

Run the console application.

int
call(string|Command $command, array $parameters = [], OutputInterface|null $outputBuffer = null)

Run an Artisan console command by name.

string
output()

Get the output for the last run command.

Command|null
resolve(Command|string $command)

Add a command, resolving through the application.

resolveCommands(array|Command|string ...$commands)

Resolve an array of commands through the application.

setContainerCommandLoader()

Set the container command loader for lazy resolution.

Details

at line 17
Application getHypervel()

Get the Hypervel application instance.

Return Value

Application

at line 22
Command|null add(Command $command)

Add a command to the application.

Parameters

Command $command

Return Value

Command|null

at line 27
array all(string|null $namespace = null)

Get all of the commands registered with the application.

Parameters

string|null $namespace

Return Value

array

at line 32
int run(InputInterface|null $input = null, OutputInterface|null $output = null)

Run the console application.

Parameters

InputInterface|null $input
OutputInterface|null $output

Return Value

int

at line 39
int call(string|Command $command, array $parameters = [], OutputInterface|null $outputBuffer = null)

Run an Artisan console command by name.

Parameters

string|Command $command
array $parameters
OutputInterface|null $outputBuffer

Return Value

int

Exceptions

CommandNotFoundException

at line 44
string output()

Get the output for the last run command.

Return Value

string

at line 49
Command|null resolve(Command|string $command)

Add a command, resolving through the application.

Parameters

Command|string $command

Return Value

Command|null

at line 57
Application resolveCommands(array|Command|string ...$commands)

Resolve an array of commands through the application.

Parameters

array|Command|string ...$commands

Return Value

Application

at line 64
Application setContainerCommandLoader()

Set the container command loader for lazy resolution.

Return Value

Application