PHP Класс Laravel\Lumen\Console\Kernel

Наследование: implements Illuminate\Contracts\Console\Kernel
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

Create a new console kernel instance.
public __construct ( Application $app ) : void
$app Laravel\Lumen\Application
Результат void

all() публичный Метод

Get all of the commands registered with the console.
public all ( ) : array
Результат array

call() публичный Метод

Run an Artisan console command by name.
public call ( string $command, array $parameters = [] ) : integer
$command string
$parameters array
Результат integer

defineConsoleSchedule() защищенный Метод

Define the application's command schedule.
protected defineConsoleSchedule ( ) : void
Результат void

getArtisan() защищенный Метод

Get the Artisan application instance.
protected getArtisan ( ) : Illuminate\Console\Application
Результат Illuminate\Console\Application

getCommands() защищенный Метод

Get the commands to add to the application.
protected getCommands ( ) : array
Результат array

handle() публичный Метод

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
Результат integer

output() публичный Метод

Get the output for the last run command.
public output ( ) : string
Результат string

queue() публичный Метод

Queue the given console command.
public queue ( string $command, array $parameters = [] ) : void
$command string
$parameters array
Результат void

renderException() защищенный Метод

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
Результат void

reportException() защищенный Метод

Report the exception to the exception handler.
protected reportException ( Exception $e ) : void
$e Exception
Результат void

schedule() защищенный Метод

Define the application's command schedule.
protected schedule ( Illuminate\Console\Scheduling\Schedule $schedule ) : void
$schedule Illuminate\Console\Scheduling\Schedule
Результат void

Описание свойств

$aliases защищенное свойство

Indicates if facade aliases are enabled for the console.
protected bool $aliases
Результат boolean

$app защищенное свойство

The application implementation.
protected Application,Illuminate\Contracts\Foundation $app
Результат Illuminate\Contracts\Foundation\Application

$artisan защищенное свойство

The Artisan application instance.
protected Application,Illuminate\Console $artisan
Результат Illuminate\Console\Application

$commands защищенное свойство

The Artisan commands provided by the application.
protected array $commands
Результат array