Merge branch 'master' of https://github.com/diezztsk/yii2 into diezztsk-master

This commit is contained in:
Alexander Makarov
2016-11-07 13:23:03 +03:00
2 changed files with 16 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class HelpController extends Controller
protected function getDefaultHelp()
{
$commands = $this->getCommandDescriptions();
$this->stdout("\nThis is Yii version " . \Yii::getVersion() . ".\n");
$this->stdout($this->getDefaultHelpHeader());
if (!empty($commands)) {
$this->stdout("\nThe following commands are available:\n\n", Console::BOLD);
$len = 0;
@ -437,4 +437,14 @@ class HelpController extends Controller
{
return basename(Yii::$app->request->scriptFile);
}
/**
* Return a default help header.
* @return string default help header.
* @since 2.0.11
*/
protected function getDefaultHelpHeader()
{
return "\nThis is Yii version " . \Yii::getVersion() . ".\n";
}
}