Browse Source

Fix #18962: Extend ignore list in `yii\console\MessageController::$except`

tags/2.0.44
Anton 3 years ago committed by GitHub
parent
commit
97f9fba7e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      framework/CHANGELOG.md
  2. 13
      framework/console/controllers/MessageController.php

1
framework/CHANGELOG.md

@ -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

13
framework/console/controllers/MessageController.php

@ -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.
@ -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()
];
/**

Loading…
Cancel
Save