Skip to content

Commit

Permalink
Fix #18962: Extend ignore list in `yii\console\MessageController::$ex…
Browse files Browse the repository at this point in the history
…cept`
  • Loading branch information
WinterSilence committed Oct 26, 2021
1 parent e294c23 commit 97f9fba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Yii Framework 2 Change Log
- Bug #18913: Add filename validation for `MessageSource::getMessageFilePath()` (uaoleg)
- Bug #18909: Fix bug with binding default action parameters for controllers (bizley)
- Bug #18955: Check `yiisoft/yii2-swiftmailer` before using as default mailer in `yii\base\Application` (WinterSilence)
- Enh #18962: Extend ignore list in `yii\console\MessageController::$except` (WinterSilence)


2.0.43 August 09, 2021
Expand Down
13 changes: 6 additions & 7 deletions framework/console/controllers/MessageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MessageController extends \yii\console\Controller
*/
public $languages = [];
/**
* @var string the name of the function for translating messages.
* @var string|array the name of the function for translating messages.
* Defaults to 'Yii::t'. This is used as a mark to find the messages to be
* translated. You may use a string for single function name or an array for
* multiple function names.
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',
'.git',
'.gitignore',
'.gitkeep',
'.hgignore',
'.hgkeep',
'.*',
'/.*',
'/messages',
'/tests',
'/runtime',
'/vendor',
'/BaseYii.php', // contains examples about Yii::t()
];
/**
Expand Down

0 comments on commit 97f9fba

Please sign in to comment.