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 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.

static forgetBootstrappers()

No description

int call(string $command, array $parameters = array(), OutputInterface $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 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.

Parameters

Container $laravel
Dispatcher $events
string $version

Return Value

void

static string phpBinary()

Determine the proper PHP executable.

Return Value

string

static string artisanBinary()

Determine the proper Artisan executable.

Return Value

string

static string formatCommandString(string $string)

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

Parameters

string $string

Return Value

string

static void starting(Closure $callback)

Register a console "starting" bootstrapper.

Parameters

Closure $callback

Return Value

void

static forgetBootstrappers()

int call(string $command, array $parameters = array(), OutputInterface $outputBuffer = null)

Run an Artisan console command by name.

Parameters

string $command
array $parameters
OutputInterface $outputBuffer

Return Value

int

string output()

Get the output for the last run command.

Return Value

string

Command add(Command $command)

Add a command to the console.

Parameters

Command $command

Return Value

Command

Command resolve(string $command)

Add a command, resolving through the application.

Parameters

string $command

Return Value

Command

$this resolveCommands(array|mixed $commands)

Resolve an array of commands through the application.

Parameters

array|mixed $commands

Return Value

$this

Application getLaravel()

Get the Laravel application instance.

Return Value

Application

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Console/Application.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部