class Application extends Application implements Application (View source)
protected Container | $laravel | The Laravel application instance. | |
protected BufferedOutput | $lastOutput | The output from the previous command. | |
static protected array | $bootstrappers | The console application bootstrappers. | |
protected Dispatcher | $events | The Event Dispatcher. |
void | __construct(Container $laravel, Dispatcher $events, string $version) Create a new Artisan console application. | |
run(InputInterface $input = null, OutputInterface $output = null) {@inheritdoc} | ||
static string | phpBinary() Determine the proper PHP executable. | |
static string | artisanBinary() Determine the proper Artisan executable. | |
static string | formatCommandString(string $string) Format the given command as a fully-qualified executable command. | |
static void | starting(Closure $callback) Register a console "starting" bootstrapper. | |
void | bootstrap() Bootstrap the console application. | |
static void | forgetBootstrappers() Clear the console application bootstrappers. | |
int | call(string $command, array $parameters = [], OutputInterface|null $outputBuffer = null) Run an Artisan console command by name. | |
string | output() Get the output for the last run command. | |
Command | add(Command $command) Add a command to the console. | |
Command | addToParent(Command $command) Add the command to the parent instance. | |
Command | resolve(string $command) Add a command, resolving through the application. | |
$this | resolveCommands(array|mixed $commands) Resolve an array of commands through the application. | |
InputDefinition | getDefaultInputDefinition() Get the default input definition for the application. | |
InputOption | getEnvironmentOption() Get the global environment option for the definition. | |
Application | getLaravel() Get the Laravel application instance. |
Create a new Artisan console application.
{@inheritdoc}
Determine the proper PHP executable.
Determine the proper Artisan executable.
Format the given command as a fully-qualified executable command.
Register a console "starting" bootstrapper.
Bootstrap the console application.
Clear the console application bootstrappers.
Run an Artisan console command by name.
Get the output for the last run command.
Add a command to the console.
Add the command to the parent instance.
Add a command, resolving through the application.
Resolve an array of commands through the application.
Get the default input definition for the application.
This is used to add the --env option to every available command.
Get the global environment option for the definition.
Get the Laravel application instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Console/Application.html