interface Kernel

Methods

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

Handle an incoming console command.

void
bootstrap()

Bootstrap the application for artisan commands.

resolveConsoleSchedule()

Resolve a console schedule instance.

command(string $signature, Closure $callback)

Register a Closure based command with the application.

addCommands(array $commands)

Set the Artisan commands provided by the application.

addCommandPaths(array $paths)

Set the paths that should have their Artisan commands automatically discovered.

addCommandRoutePaths(array $paths)

Set the paths that should have their Artisan "routes" automatically discovered.

void
registerCommand(Command $command)

Register the given command with the console application.

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

Run an Artisan console command by name.

queue(string $command, array $parameters = [])

Queue the given console command.

array
all()

Get all of the commands registered with the console.

string
output()

Get the output for the last run command.

void
setArtisan(Application|null $artisan)

Set the Artisan application instance.

void
terminate(InputInterface $input, int $status)

Terminate the application.

getArtisan()

Get the Artisan application instance.

Details

at line 23
int handle(InputInterface $input, OutputInterface|null $output = null)

Handle an incoming console command.

Parameters

InputInterface $input
OutputInterface|null $output

Return Value

int

at line 28
void bootstrap()

Bootstrap the application for artisan commands.

Return Value

void

at line 33
Schedule resolveConsoleSchedule()

Resolve a console schedule instance.

Return Value

Schedule

at line 40
ClosureCommand command(string $signature, Closure $callback)

Register a Closure based command with the application.

Parameters

string $signature
Closure $callback

Return Value

ClosureCommand

at line 48
Kernel addCommands(array $commands)

Set the Artisan commands provided by the application.

Parameters

array $commands

Return Value

Kernel

at line 55
Kernel addCommandPaths(array $paths)

Set the paths that should have their Artisan commands automatically discovered.

Parameters

array $paths

Return Value

Kernel

at line 62
Kernel addCommandRoutePaths(array $paths)

Set the paths that should have their Artisan "routes" automatically discovered.

Parameters

array $paths

Return Value

Kernel

at line 67
void registerCommand(Command $command)

Register the given command with the console application.

Parameters

Command $command

Return Value

void

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

Run an Artisan console command by name.

Parameters

string $command
array $parameters
OutputInterface|null $outputBuffer

Return Value

int

Exceptions

CommandNotFoundException
Throwable

at line 80
PendingDispatch queue(string $command, array $parameters = [])

Queue the given console command.

Parameters

string $command
array $parameters

Return Value

PendingDispatch

at line 87
array all()

Get all of the commands registered with the console.

Return Value

array

at line 92
string output()

Get the output for the last run command.

Return Value

string

at line 97
void setArtisan(Application|null $artisan)

Set the Artisan application instance.

Parameters

Application|null $artisan

Return Value

void

at line 102
void terminate(InputInterface $input, int $status)

Terminate the application.

Parameters

InputInterface $input
int $status

Return Value

void

at line 107
Application getArtisan()

Get the Artisan application instance.

Return Value

Application