PHP Class Recca0120\Terminal\Kernel

Inheritance: implements Illuminate\Contracts\Console\Kernel
Show file Open project: recca0120/laravel-terminal Class Usage Examples

Protected Properties

Property Type Description
$artisan Illuminate\Console\Application The Artisan application instance.
$commands array The Artisan commands provided by the application.

Public Methods

Method Description
__construct ( Application $artisan ) 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 Handle an incoming console command.
output ( ) : string Get the output for the last run command.
queue ( string $command, array $parameters = [] ) : integer Queue an Artisan console command by name.

Method Details

__construct() public method

Create a new console kernel instance.
public __construct ( Application $artisan )
$artisan Application

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

handle() public method

Handle an incoming console command.
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 an Artisan console command by name.
public queue ( string $command, array $parameters = [] ) : integer
$command string
$parameters array
return integer

Property Details

$artisan protected property

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

$commands protected property

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