class Kernel implements Kernel (View source)
protected Application | $app | The application implementation. | |
protected Dispatcher | $events | The event dispatcher implementation. | |
protected Application | $artisan | The Artisan application instance. | |
protected array | $commands | The Artisan commands provided by the application. | |
protected bool | $commandsLoaded | Indicates if the Closure commands have been loaded. | |
protected array | $bootstrappers | The bootstrap classes for the application. |
void | __construct(Application $app, Dispatcher $events) Create a new console kernel instance. | |
void | defineConsoleSchedule() Define the application's command schedule. | |
int | handle(InputInterface $input, OutputInterface|null $output = null) Run the console application. | |
void | terminate(InputInterface $input, int $status) Terminate the application. | |
void | schedule(Schedule $schedule) Define the application's command schedule. | |
void | commands() Register the Closure based commands for the application. | |
ClosureCommand | command(string $signature, Closure $callback) Register a Closure based command with the application. | |
void | load(array|string $paths) Register all of the commands in the given directory. | |
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. | |
PendingDispatch | 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 | bootstrap() Bootstrap the application for artisan commands. | |
Application | getArtisan() Get the Artisan application instance. | |
void | setArtisan(Application $artisan) Set the Artisan application instance. | |
array | bootstrappers() Get the bootstrap classes for the application. | |
void | reportException(Exception $e) Report the exception to the exception handler. | |
void | renderException(OutputInterface $output, Exception $e) Report the exception to the exception handler. |
Create a new console kernel instance.
Define the application's command schedule.
Run the console application.
Terminate the application.
Define the application's command schedule.
Register the Closure based commands for the application.
Register a Closure based command with the application.
Register all of the commands in the given directory.
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.
Bootstrap the application for artisan commands.
Get the Artisan application instance.
Set the Artisan application instance.
Get the bootstrap classes for the application.
Report the exception to the exception handler.
Report the exception to the exception handler.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Foundation/Console/Kernel.html