Fixes #16192: yii\db\Command::logQuery() is now protected

This commit is contained in:
drlibra
2018-06-03 18:30:53 +05:00
committed by Alexander Makarov
parent 292a545642
commit 6590feef0d
2 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ Yii Framework 2 Change Log
- Bug #16292: Fixed misconfigured CORS filter exception throwing. Now it throws `InvalidConfigException` in Debug mode (khvalov) - Bug #16292: Fixed misconfigured CORS filter exception throwing. Now it throws `InvalidConfigException` in Debug mode (khvalov)
- Bug #16301: Fixed `yii\web\User::setIdentity()` to clear access check cache while setting identity object to `null` (Izumi-kun) - Bug #16301: Fixed `yii\web\User::setIdentity()` to clear access check cache while setting identity object to `null` (Izumi-kun)
- Bug #16322: Fixed strings were not were not compared using timing attack resistant approach while CSRF token validation (samdark, Felix Wiedemann) - Bug #16322: Fixed strings were not were not compared using timing attack resistant approach while CSRF token validation (samdark, Felix Wiedemann)
- Chg #16192: `yii\db\Command::logQuery()` is now protected (drlibra)
2.0.15.1 March 21, 2018 2.0.15.1 March 21, 2018
----------------------- -----------------------

View File

@ -1093,7 +1093,7 @@ class Command extends Component
* @return array array of two elements, the first is boolean of whether profiling is enabled or not. * @return array array of two elements, the first is boolean of whether profiling is enabled or not.
* The second is the rawSql if it has been created. * The second is the rawSql if it has been created.
*/ */
private function logQuery($category) protected function logQuery($category)
{ {
if ($this->db->enableLogging) { if ($this->db->enableLogging) {
$rawSql = $this->getRawSql(); $rawSql = $this->getRawSql();