Application
class Application extends Application implements Application (View source)
Properties
protected Container | $laravel | The Laravel application instance. |
|
protected Dispatcher | $events | The event dispatcher instance. |
|
protected BufferedOutput | $lastOutput | The output from the previous command. |
|
static protected | $bootstrappers | The console application bootstrappers. |
|
protected array | $commandMap | A map of command names to classes. |
Methods
Create a new Artisan console application.
Determine the proper PHP executable.
Determine the proper Artisan executable.
Format the given command as a fully-qualified executable command.
Bootstrap the console application.
Clear the console application bootstrappers.
Run an Artisan console command by name.
Parse the incoming Artisan command and its input.
Get the output for the last run command.
Add a command to the console.
Add the command to the parent instance.
Resolve an array of commands through the application.
Set the container command loader for lazy resolution.
Get the default input definition for the application.
Get the global environment option for the definition.
Get the Laravel application instance.
Details
__construct(Container $laravel, Dispatcher $events, string $version)
Create a new Artisan console application.
static string
formatCommandString(string $string)
Format the given command as a fully-qualified executable command.
int
call(string $command, array $parameters = [], OutputInterface|null $outputBuffer = null)
Run an Artisan console command by name.
protected array
parseCommand(string $command, array $parameters)
Parse the incoming Artisan command and its input.
protected InputDefinition
getDefaultInputDefinition()
Get the default input definition for the application.
This is used to add the --env option to every available command.