Application
Extends
-
Symfony\...\Application
Implements
Properties
$lastOutput Symfony\...\BufferedOutput
The output from the previous command.
$bootstrappers array
The console application bootstrappers.
Methods
__construct ( Container $laravel , Dispatcher $events , $version ) : void
Create a new Artisan console application.
Parameters
- $laravel Container
- $events Dispatcher
- $version string
run ( Symfony\...\InputInterface $input , Symfony\...\OutputInterface $output ) : int
{@inheritdoc}
phpBinary ( ) : string
Determine the proper PHP executable.
artisanBinary ( ) : string
Determine the proper Artisan executable.
formatCommandString ( $string ) : string
Format the given command as a fully-qualified executable command.
Parameters
- $string string
starting ( Closure $callback ) : void
Register a console "starting" bootstrapper.
Parameters
- $callback Closure
bootstrap ( ) : void
Bootstrap the console application.
forgetBootstrappers ( ) : void
Clear the console application bootstrappers.
call ( $command , array $parameters , $outputBuffer ) : int
Run an Artisan console command by name.
Parameters
- $command string
- $parameters array
- $outputBuffer Symfony\...\OutputInterface|null
parseCommand ( $command , $parameters ) : array
Parse the incoming Artisan command and its input.
Parameters
- $command string
- $parameters array
output ( ) : string
Get the output for the last run command.
add ( Symfony\...\Command $command ) : Symfony\...\Command
Add a command to the console.
Parameters
- $command Symfony\...\Command
addToParent ( Symfony\...\Command $command ) : Symfony\...\Command
Add the command to the parent instance.
Parameters
- $command Symfony\...\Command
resolve ( $command ) : Symfony\...\Command
Add a command, resolving through the application.
Parameters
- $command string
resolveCommands ( $commands ) : $this
Resolve an array of commands through the application.
Parameters
- $commands array|mixed
getDefaultInputDefinition ( ) : Symfony\...\InputDefinition
Get the default input definition for the application.
getEnvironmentOption ( ) : Symfony\...\InputOption
Get the global environment option for the definition.