Application
class Application extends Application (View source)
Properties
protected Handler | $exceptionHandler | The exception handler instance. | |
protected Application | $laravel | The Laravel application instance. |
Methods
static Application | start(Application $app) Create and boot a new Console application. | |
static Application | make(Application $app) Create a new Console application. | |
$this | boot() Boot the Console application. | |
void | call(string $command, array $parameters = array(), OutputInterface $output = null) Run an Artisan console command by name. | |
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. | |
void | resolveCommands(array|mixed $commands) Resolve an array of commands through the application. | |
InputDefinition | getDefaultInputDefinition() Get the default input definitions for the applications. | |
InputOption | getEnvironmentOption() Get the global environment option for the definition. | |
void | renderException(Exception $e, OutputInterface $output) Render the given exception. | |
$this | setExceptionHandler(Handler $handler) Set the exception handler instance. | |
$this | setLaravel(Application $laravel) Set the Laravel application instance. | |
$this | setAutoExit(bool $boolean) Set whether the Console app should auto-exit when done. |
Details
static Application start(Application $app)
Create and boot a new Console application.
static Application make(Application $app)
Create a new Console application.
$this boot()
Boot the Console application.
void call(string $command, array $parameters = array(), OutputInterface $output = null)
Run an Artisan console command by name.
Command add(Command $command)
Add a command to the console.
protected Command addToParent(Command $command)
Add the command to the parent instance.
Command resolve(string $command)
Add a command, resolving through the application.
void resolveCommands(array|mixed $commands)
Resolve an array of commands through the application.
protected InputDefinition getDefaultInputDefinition()
Get the default input definitions for the applications.
protected InputOption getEnvironmentOption()
Get the global environment option for the definition.
void renderException(Exception $e, OutputInterface $output)
Render the given exception.
$this setExceptionHandler(Handler $handler)
Set the exception handler instance.
$this setLaravel(Application $laravel)
Set the Laravel application instance.
$this setAutoExit(bool $boolean)
Set whether the Console app should auto-exit when done.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Console/Application.html