mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 22:30:27 +08:00
cleanup console namespace changes
This commit is contained in:
@ -71,7 +71,7 @@ abstract class BaseMigrateController extends Controller
|
||||
return array_merge(
|
||||
parent::options($actionID),
|
||||
['migrationPath'], // global for all actions
|
||||
$actionID === 'create' ? ['templateFile', 'templateFileGenerators', 'fields'] : [] // action create
|
||||
$actionID === 'create' ? ['templateFile', 'fields'] : [] // action create
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -397,7 +397,7 @@ class HelpController extends Controller
|
||||
} else {
|
||||
$defaultValue = var_export($defaultValue, true);
|
||||
}
|
||||
$doc = "$type (defaults to " . $defaultValue . ')';
|
||||
$doc = "$type (defaults to $defaultValue)";
|
||||
} else {
|
||||
$doc = $type;
|
||||
}
|
||||
|
@ -41,7 +41,6 @@ class MessageController extends Controller
|
||||
* @var string controller default action ID.
|
||||
*/
|
||||
public $defaultAction = 'extract';
|
||||
|
||||
/**
|
||||
* @var string required, root directory of all source files.
|
||||
*/
|
||||
@ -141,7 +140,7 @@ class MessageController extends Controller
|
||||
*/
|
||||
public function options($actionID)
|
||||
{
|
||||
return [
|
||||
return array_merge(parent::options($actionID), [
|
||||
'sourcePath',
|
||||
'messagePath',
|
||||
'languages',
|
||||
@ -158,7 +157,7 @@ class MessageController extends Controller
|
||||
'messageTable',
|
||||
'catalog',
|
||||
'ignoreCategories'
|
||||
];
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -531,6 +530,7 @@ EOD;
|
||||
* @param string $category category that is checked
|
||||
* @param array $ignoreCategories message categories to ignore.
|
||||
* @return boolean
|
||||
* @since 2.0.7
|
||||
*/
|
||||
protected function isCategoryIgnored($category, array $ignoreCategories)
|
||||
{
|
||||
|
@ -65,6 +65,7 @@ class MigrateController extends BaseMigrateController
|
||||
public $templateFile = '@yii/views/migration.php';
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @since 2.0.7
|
||||
*/
|
||||
public $generatorTemplateFiles = [
|
||||
'create_table' => '@yii/views/createTableMigration.php',
|
||||
|
@ -43,6 +43,7 @@ class ServeController extends Controller
|
||||
*/
|
||||
public $router;
|
||||
|
||||
|
||||
/**
|
||||
* Runs PHP built-in web server
|
||||
*
|
||||
|
Reference in New Issue
Block a user