本文整理汇总了PHP中Illuminate\Console\Application::resolveCommands方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::resolveCommands方法的具体用法?PHP Application::resolveCommands怎么用?PHP Application::resolveCommands使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Console\Application
的用法示例。
在下文中一共展示了Application::resolveCommands方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: resolveCommands
/**
* Resolve an array of commands through the application.
*
* @param array|mixed $commands
*
* @return $this
*/
public function resolveCommands($commands)
{
if ($this->isFromArtisanStartingEvent() === true) {
return $this;
}
return parent::resolveCommands($commands);
}
示例2: resolveCommands
/**
* Resolve an array of commands through the application.
*
* @param array|mixed $commands
* @return void
* @static
*/
public static function resolveCommands($commands)
{
\Illuminate\Console\Application::resolveCommands($commands);
}
示例3: getArtisan
/**
* Get the Artisan application instance.
*
* @return \Illuminate\Console\Application
*/
protected function getArtisan()
{
if (is_null($this->artisan)) {
$art = new Artisan($this->app, $this->events, $this->app->version());
return $this->artisan = $art->resolveCommands($this->commands);
}
return $this->artisan;
}