interface Application

Methods

getHypervel()

Get the Hypervel application instance.

Command|null
add(Command $command)

Add a command to the application.

Command
get(string $name)

Get a registered command by name or alias.

bool
has(string $name)

Determine if a command exists.

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 18
Application getHypervel()

Get the Hypervel application instance.

Return Value

Application

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

Add a command to the application.

Parameters

Command $command

Return Value

Command|null

at line 30
Command get(string $name)

Get a registered command by name or alias.

Parameters

string $name

Return Value

Command

Exceptions

CommandNotFoundException

at line 35
bool has(string $name)

Determine if a command exists.

Parameters

string $name

Return Value

bool

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

Get all of the commands registered with the application.

Parameters

string|null $namespace

Return Value

array

at line 45
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 52
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 57
string output()

Get the output for the last run command.

Return Value

string

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

Add a command, resolving through the application.

Parameters

Command|string $command

Return Value

Command|null

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

Resolve an array of commands through the application.

Parameters

array|Command|string ...$commands

Return Value

Application

at line 77
Application setContainerCommandLoader()

Set the container command loader for lazy resolution.

Return Value

Application