Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extends ignore list in yii\console\MessageController::$except #18962

Merged
merged 7 commits into from
Oct 26, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions framework/console/controllers/MessageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class MessageController extends \yii\console\Controller
* translated. You may use a string for single function name or an array for
* multiple function names.
*/
public $translator = 'Yii::t';
public $translator = ['Yii::t', '\Yii::t'];
/**
* @var bool whether to sort messages by keys when merging new messages
* with the existing ones. Defaults to false, which means the new (untranslated)
Expand Down Expand Up @@ -91,13 +91,12 @@ class MessageController extends \yii\console\Controller
* If a file/directory matches both a pattern in "only" and "except", it will NOT be processed.
*/
public $except = [
'.svn',
WinterSilence marked this conversation as resolved.
Show resolved Hide resolved
'.git',
'.gitignore',
'.gitkeep',
'.hgignore',
'.hgkeep',
'.*',
'/.*',
'/messages',
'/tests',
'/runtime',
'/vendor',
'/BaseYii.php', // contains examples about Yii::t()
];
/**
Expand Down