Kernel
Implements
Properties
$commands array
The Artisan commands provided by the application.
$commandsLoaded bool
Indicates if the Closure commands have been loaded.
$bootstrappers string[]
The bootstrap classes for the application.
Methods
__construct ( Application $app , Dispatcher $events ) : void
Create a new console kernel instance.
Parameters
- $app Application
- $events Dispatcher
defineConsoleSchedule ( ) : void
Define the application's command schedule.
scheduleCache ( ) : string
Get the name of the cache store that should manage scheduling mutexes.
handle ( $input , $output ) : int
Run the console application.
Parameters
- $input Symfony\...\InputInterface
- $output Symfony\...\OutputInterface|null
terminate ( $input , $status ) : void
Terminate the application.
Parameters
- $input Symfony\...\InputInterface
- $status int
schedule ( Schedule $schedule ) : void
Define the application's command schedule.
Parameters
- $schedule Schedule
scheduleTimezone ( ) : DateTimeZone |string|null
Get the timezone that should be used by default for scheduled events.
commands ( ) : void
Register the commands for the application.
command ( $signature , Closure $callback ) : ClosureCommand
Register a Closure based command with the application.
Parameters
- $signature string
- $callback Closure
load ( $paths ) : void
Register all of the commands in the given directory.
Parameters
- $paths array|string
registerCommand ( $command ) : void
Register the given command with the console application.
Parameters
- $command Symfony\...\Command
call ( $command , array $parameters , $outputBuffer ) : int
Run an Artisan console command by name.
Parameters
- $command string
- $parameters array
- $outputBuffer Symfony\...\OutputInterface|null
queue ( $command , array $parameters ) : PendingDispatch
Queue the given console command.
Parameters
- $command string
- $parameters array
all ( ) : array
Get all of the commands registered with the console.
output ( ) : string
Get the output for the last run command.
bootstrap ( ) : void
Bootstrap the application for artisan commands.
setArtisan ( $artisan ) : void
Set the Artisan application instance.
Parameters
- $artisan Application
bootstrappers ( ) : array
Get the bootstrap classes for the application.