PHP Class Laravel\Lumen\Console\Kernel

Inheritance: implements Illuminate\Contracts\Console\Kernel
ファイルを表示 Open project: laravel/lumen-framework Class Usage Examples

Protected Properties

Property 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.

Public Methods

Method 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.

Protected Methods

Method 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 method

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

all() public method

Get all of the commands registered with the console.
public all ( ) : array
return array

call() public method

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

defineConsoleSchedule() protected method

Define the application's command schedule.
protected defineConsoleSchedule ( ) : void
return void

getArtisan() protected method

Get the Artisan application instance.
protected getArtisan ( ) : Illuminate\Console\Application
return Illuminate\Console\Application

getCommands() protected method

Get the commands to add to the application.
protected getCommands ( ) : array
return array

handle() public method

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
return integer

output() public method

Get the output for the last run command.
public output ( ) : string
return string

queue() public method

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

renderException() protected method

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
return void

reportException() protected method

Report the exception to the exception handler.
protected reportException ( Exception $e ) : void
$e Exception
return void

schedule() protected method

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

Property Details

$aliases protected_oe property

Indicates if facade aliases are enabled for the console.
protected bool $aliases
return boolean

$app protected_oe property

The application implementation.
protected Application,Illuminate\Contracts\Foundation $app
return Illuminate\Contracts\Foundation\Application

$artisan protected_oe property

The Artisan application instance.
protected Application,Illuminate\Console $artisan
return Illuminate\Console\Application

$commands protected_oe property

The Artisan commands provided by the application.
protected array $commands
return array