PHP Class Laravel\Lumen\Console\Kernel

Inheritance: implements Illuminate\Contracts\Console\Kernel
Afficher le fichier Open project: laravel/lumen-framework Class Usage Examples

Protected Properties

Свойство Type Description
$aliases boolean Indicates if facade aliases are enabled for the console.
$app Illuminate\Contracts\Foundation\Application The application implementation.
$artisan Illuminate\Console\Application The Artisan application instance.
$commands array The Artisan commands provided by the application.

Méthodes publiques

Méthode Description
__construct ( Application $app ) : void Create a new console kernel instance.
all ( ) : array Get all of the commands registered with the console.
call ( string $command, array $parameters = [] ) : integer Run an Artisan console command by name.
handle ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output = null ) : integer Run the console application.
output ( ) : string Get the output for the last run command.
queue ( string $command, array $parameters = [] ) : void Queue the given console command.

Méthodes protégées

Méthode Description
defineConsoleSchedule ( ) : void Define the application's command schedule.
getArtisan ( ) : Illuminate\Console\Application Get the Artisan application instance.
getCommands ( ) : array Get the commands to add to the application.
renderException ( Symfony\Component\Console\Output\OutputInterface $output, Exception $e ) : void Report the exception to the exception handler.
reportException ( Exception $e ) : void Report the exception to the exception handler.
schedule ( Illuminate\Console\Scheduling\Schedule $schedule ) : void Define the application's command schedule.

Method Details

__construct() public méthode

Create a new console kernel instance.
public __construct ( Application $app ) : void
$app Laravel\Lumen\Application
Résultat void

all() public méthode

Get all of the commands registered with the console.
public all ( ) : array
Résultat array

call() public méthode

Run an Artisan console command by name.
public call ( string $command, array $parameters = [] ) : integer
$command string
$parameters array
Résultat integer

defineConsoleSchedule() protected méthode

Define the application's command schedule.
protected defineConsoleSchedule ( ) : void
Résultat void

getArtisan() protected méthode

Get the Artisan application instance.
protected getArtisan ( ) : Illuminate\Console\Application
Résultat Illuminate\Console\Application

getCommands() protected méthode

Get the commands to add to the application.
protected getCommands ( ) : array
Résultat array

handle() public méthode

Run the console application.
public handle ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output = null ) : integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat integer

output() public méthode

Get the output for the last run command.
public output ( ) : string
Résultat string

queue() public méthode

Queue the given console command.
public queue ( string $command, array $parameters = [] ) : void
$command string
$parameters array
Résultat void

renderException() protected méthode

Report the exception to the exception handler.
protected renderException ( Symfony\Component\Console\Output\OutputInterface $output, Exception $e ) : void
$output Symfony\Component\Console\Output\OutputInterface
$e Exception
Résultat void

reportException() protected méthode

Report the exception to the exception handler.
protected reportException ( Exception $e ) : void
$e Exception
Résultat void

schedule() protected méthode

Define the application's command schedule.
protected schedule ( Illuminate\Console\Scheduling\Schedule $schedule ) : void
$schedule Illuminate\Console\Scheduling\Schedule
Résultat void

Property Details

$aliases protected_oe property

Indicates if facade aliases are enabled for the console.
protected bool $aliases
Résultat boolean

$app protected_oe property

The application implementation.
protected Application,Illuminate\Contracts\Foundation $app
Résultat Illuminate\Contracts\Foundation\Application

$artisan protected_oe property

The Artisan application instance.
protected Application,Illuminate\Console $artisan
Résultat Illuminate\Console\Application

$commands protected_oe property

The Artisan commands provided by the application.
protected array $commands
Résultat array