Fixes #14201: yii\console\controllers\MessageController::extractMessagesFromTokens() is now protected

This commit is contained in:
Arthur Khachaturov
2017-05-24 17:41:27 +03:00
committed by Alexander Makarov
parent 2b9f0006d5
commit 78ec17f13c
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ Yii Framework 2 Change Log
- Bug #14248: `yii\console\controllers\MessageController` no longer outputs colorized filenames when console does not support text colorization (PowerGamer1)
- Bug #14264: Fixed a bug where `yii\log\Logger::calculateTimings()` was not accepting messages with array tokens (bizley)
- Chg #14201: `yii\console\controllers\MessageController::extractMessagesFromTokens()` is now protected (faenir)
2.0.12 June 05, 2017

View File

@ -507,7 +507,7 @@ EOD;
* @param array $ignoreCategories message categories to ignore.
* @return array messages.
*/
private function extractMessagesFromTokens(array $tokens, array $translatorTokens, array $ignoreCategories)
protected function extractMessagesFromTokens(array $tokens, array $translatorTokens, array $ignoreCategories)
{
$messages = [];
$translatorTokensCount = count($translatorTokens);