class Illuminate / Console / Application

Application

Extends

    Symfony\...\Application

Implements

Properties

protected

$laravel Container

The Laravel application instance.

Default: null
protected

$events Dispatcher

The event dispatcher instance.

Default: null
protected

$lastOutput Symfony\...\BufferedOutput

The output from the previous command.

Default: null
protected static

$bootstrappers array

The console application bootstrappers.

Default: []
protected

$commandMap array

A map of command names to classes.

Default: []

Methods

public

__construct ( Container $laravel , Dispatcher $events , $version ) : void

Create a new Artisan console application.

Parameters

public static

phpBinary ( ) : string

Determine the proper PHP executable.

public static

artisanBinary ( ) : string

Determine the proper Artisan executable.

public static

formatCommandString ( $string ) : string

Format the given command as a fully-qualified executable command.

Parameters

  • $string string
public static

starting ( Closure $callback ) : void

Register a console "starting" bootstrapper.

Parameters

protected

bootstrap ( ) : void

Bootstrap the console application.

public static

forgetBootstrappers ( ) : void

Clear the console application bootstrappers.

public

call ( $command , array $parameters , $outputBuffer ) : int

Run an Artisan console command by name.

Parameters

  • $command string
  • $parameters array
  • $outputBuffer Symfony\...\OutputInterface|null
protected

parseCommand ( $command , $parameters ) : array

Parse the incoming Artisan command and its input.

Parameters

  • $command string
  • $parameters array
public

output ( ) : string

Get the output for the last run command.

public

add ( Symfony\...\Command $command ) : Symfony\...\Command

Add a command to the console.

Parameters

  • $command Symfony\...\Command
protected

addToParent ( Symfony\...\Command $command ) : Symfony\...\Command

Add the command to the parent instance.

Parameters

  • $command Symfony\...\Command
public

resolve ( $command ) : Symfony\...\Command|null

Add a command, resolving through the application.

Parameters

public

resolveCommands ( $commands ) : $this

Resolve an array of commands through the application.

Parameters

  • $commands array|mixed
public

setContainerCommandLoader ( ) : $this

Set the container command loader for lazy resolution.

protected

getDefaultInputDefinition ( ) : Symfony\...\InputDefinition

Get the default input definition for the application.

protected

getEnvironmentOption ( ) : Symfony\...\InputOption

Get the global environment option for the definition.

public

getLaravel ( ) : Application

Get the Laravel application instance.