PHP Class Recca0120\Terminal\Application

Inheritance: extends Illuminate\Console\Application
Show file Open project: recca0120/laravel-terminal Class Usage Examples

Public Methods

Method Description
add ( Command $command ) : Command Add a command to the console.
call ( string $command, array $parameters = [] ) : integer Run an Artisan console command by name.
resolveCommands ( array | mixed $commands ) Resolve an array of commands through the application.
run ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null ) : integer Runs the current application.

Private Methods

Method Description
getBufferedOutput ( ) : Symfony\Component\Console\Output\BufferedOutput getBufferedOutput.
isAjax ( ) : boolean isAjax.
isFromArtisanStartingEvent ( ) : boolean isFromArtisanStartingEvent.

Method Details

add() public method

Add a command to the console.
public add ( Command $command ) : Command
$command Symfony\Component\Console\Command\Command
return Symfony\Component\Console\Command\Command

call() public method

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

resolveCommands() public method

Resolve an array of commands through the application.
public resolveCommands ( array | mixed $commands )
$commands array | mixed

run() public method

Runs the current application.
public run ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null ) : integer
$input Symfony\Component\Console\Input\InputInterface An Input instance
$output Symfony\Component\Console\Output\OutputInterface An Output instance
return integer 0 if everything went fine, or an error code