Kernel
interface Kernel
Methods
Handle an incoming console command.
Bootstrap the application for artisan commands.
Resolve a console schedule instance.
Register the commands for the application.
Add loadPaths in the given directory.
Set the Artisan commands provided by the application.
Set the paths that should have their Artisan commands automatically discovered.
Set the paths that should have their Artisan "routes" automatically discovered.
Register the given command with the console application.
Run an Artisan console command by name.
Queue the given console command.
Get all of the commands registered with the console.
Get the output for the last run command.
Terminate the application.
Get the Artisan application instance.
Details
at line 20
int
handle(InputInterface $input, OutputInterface|null $output = null)
Handle an incoming console command.
at line 25
void
bootstrap()
Bootstrap the application for artisan commands.
at line 30
void
schedule(Schedule $schedule)
Define the application's command schedule.
at line 35
Schedule
resolveConsoleSchedule()
Resolve a console schedule instance.
at line 40
void
commands()
Register the commands for the application.
at line 45
ClosureCommand
command(string $signature, Closure $callback)
Register a Closure based command with the application.
at line 50
void
load(array|string $paths)
Add loadPaths in the given directory.
at line 57
Kernel
addCommands(array $commands)
Set the Artisan commands provided by the application.
at line 64
Kernel
addCommandPaths(array $paths)
Set the paths that should have their Artisan commands automatically discovered.
at line 71
Kernel
addCommandRoutePaths(array $paths)
Set the paths that should have their Artisan "routes" automatically discovered.
at line 76
void
registerCommand(Command $command)
Register the given command with the console application.
at line 83
int
call(string $command, array $parameters = [], OutputInterface|null $outputBuffer = null)
Run an Artisan console command by name.
at line 88
PendingDispatch
queue(string $command, array $parameters = [])
Queue the given console command.
at line 93
array
all()
Get all of the commands registered with the console.
at line 98
string
output()
Get the output for the last run command.
at line 103
void
setArtisan(Application|null $artisan)
Set the Artisan application instance.
at line 108
void
terminate(InputInterface $input, int $status)
Terminate the application.
at line 113
Application
getArtisan()
Get the Artisan application instance.