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
Show file tree
Hide file tree
Changes from 5 commits
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
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)
- Bug #18962: Extends 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',
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