Kernel
class Kernel implements Kernel (View source)
Traits
Properties
| protected Application | $app | The application implementation.  | 
                |
| protected Dispatcher | $events | The event dispatcher implementation.  | 
                |
| protected Application|null | $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 | $commandLifecycleDurationHandlers | All of the registered command duration handlers.  | 
                |
| protected Carbon|null | $commandStartedAt | When the currently handled command started.  | 
                |
| protected string[] | $bootstrappers | The bootstrap classes for the application.  | 
                
Methods
Get the number of seconds until the given DateTime.
If the given value is an interval, convert it to a DateTime instance.
Define the application's command schedule.
Get the name of the cache store that should manage scheduling mutexes.
Run the console application.
Terminate the application.
Register a callback to be invoked when the command lifecycle duration exceeds a given amount of time.
When the command being handled started.
Get the timezone that should be used by default for scheduled events.
Register the commands for 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.
Bootstrap the application without booting service providers.
Get the Artisan application instance.
Get the bootstrap classes for the application.
Details
        
                    protected        int
    secondsUntil(DateTimeInterface|DateInterval|int $delay)
        
    
    Get the number of seconds until the given DateTime.
        
                    protected        int
    availableAt(DateTimeInterface|DateInterval|int $delay = 0)
        
    
    Get the "available at" UNIX timestamp.
        
                    protected        DateTimeInterface|int
    parseDateInterval(DateTimeInterface|DateInterval|int $delay)
        
    
    If the given value is an interval, convert it to a DateTime instance.
        
                    protected        int
    currentTime()
        
    
    Get the current system time as a UNIX timestamp.
        
                            void
    __construct(Application $app, Dispatcher $events)
        
    
    Create a new console kernel instance.
        
                    protected        void
    defineConsoleSchedule()
        
    
    Define the application's command schedule.
        
                    protected        string
    scheduleCache()
        
    
    Get the name of the cache store that should manage scheduling mutexes.
        
                            int
    handle(InputInterface $input, OutputInterface|null $output = null)
        
    
    Run the console application.
        
                            void
    terminate(InputInterface $input, int $status)
        
    
    Terminate the application.
        
                            void
    whenCommandLifecycleIsLongerThan(DateTimeInterface|CarbonInterval|float|int $threshold, callable $handler)
        
    
    Register a callback to be invoked when the command lifecycle duration exceeds a given amount of time.
        
                            Carbon|null
    commandStartedAt()
        
    
    When the command being handled started.
        
                    protected        void
    schedule(Schedule $schedule)
        
    
    Define the application's command schedule.
        
                    protected        DateTimeZone|string|null
    scheduleTimezone()
        
    
    Get the timezone that should be used by default for scheduled events.
        
                    protected        void
    commands()
        
    
    Register the commands for the application.
        
                            ClosureCommand
    command(string $signature, Closure $callback)
        
    
    Register a Closure based command with the application.
        
                    protected        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.
        
                            void
    bootstrapWithoutBootingProviders()
        
    
    Bootstrap the application without booting service providers.
        
                    protected        Application
    getArtisan()
        
    
    Get the Artisan application instance.
        
                            void
    setArtisan(Application $artisan)
        
    
    Set the Artisan application instance.
        
                    protected        array
    bootstrappers()
        
    
    Get the bootstrap classes for the application.
        
                    protected        void
    reportException(Throwable $e)
        
    
    Report the exception to the exception handler.
        
                    protected        void
    renderException(OutputInterface $output, Throwable $e)
        
    
    Render the given exception.