Application
class Application extends Application (View source)
Properties
protected Handler | $exceptionHandler | The exception handler instance. |
|
protected Application | $laravel | The Laravel application instance. |
Methods
Boot the Console application.
Run an Artisan console command by name.
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 definitions for the applications.
Get the global environment option for the definition.
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.