Application (Console)
Application
class Application extends Application implements Application (View source)
Methods
void | __construct(Container $laravel, Dispatcher $events, string $version) Create a new Artisan console application. | |
static void | starting(Closure $callback) Register a console "starting" bootstrapper. | |
static void | forgetBootstrappers() Clear the console application bootstrappers. | |
int | call(string $command, array $parameters = array()) 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 | resolve(string $command) Add a command, resolving through the application. | |
$this | resolveCommands(array|mixed $commands) Resolve an array of commands through the application. | |
Application | getLaravel() Get the Laravel application instance. |
Details
void __construct(Container $laravel, Dispatcher $events, string $version)
Create a new Artisan console application.
static void starting(Closure $callback)
Register a console "starting" bootstrapper.
static void forgetBootstrappers()
Clear the console application bootstrappers.
int call(string $command, array $parameters = array())
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 resolve(string $command)
Add a command, resolving through the application.
$this resolveCommands(array|mixed $commands)
Resolve an array of commands through the application.
Application getLaravel()
Get the Laravel application instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Console/Application.html