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

Get the Hypervel application instance.

Return Value

Application

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

Add a command to the application.

Parameters

Command $command

Return Value

Command|null

at line 31
Command get(string $name)

Get a registered command by name or alias.

Parameters

string $name

Return Value

Command

Exceptions

CommandNotFoundException

at line 36
bool has(string $name)

Determine if a command exists.

Parameters

string $name

Return Value

bool

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

Get all of the commands registered with the application.

Parameters

string|null $namespace

Return Value

array

at line 48
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 56
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
Throwable

at line 61
string output()

Get the output for the last run command.

Return Value

string

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

Add a command, resolving through the application.

Parameters

Command|string $command

Return Value

Command|null

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

Resolve an array of commands through the application.

Parameters

array|Command|string ...$commands

Return Value

Application

at line 81
Application setContainerCommandLoader()

Set the container command loader for lazy resolution.

Return Value

Application