PHP Class Recca0120\Terminal\Application

Inheritance: extends Illuminate\Console\Application
Afficher le fichier Open project: recca0120/laravel-terminal Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
getBufferedOutput ( ) : Symfony\Component\Console\Output\BufferedOutput getBufferedOutput.
isAjax ( ) : boolean isAjax.
isFromArtisanStartingEvent ( ) : boolean isFromArtisanStartingEvent.

Method Details

add() public méthode

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

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

resolveCommands() public méthode

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

run() public méthode

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
Résultat integer 0 if everything went fine, or an error code