mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Fix #17670: Fix overriding core component class using __class
This commit is contained in:

committed by
Alexander Makarov

parent
166f892f14
commit
c1e9739ed2
@ -8,6 +8,7 @@ Yii Framework 2 Change Log
|
||||
- Bug #17648: Handle empty column arrays in console `Table` widget (alex-code)
|
||||
- Bug #17657: Fix migration errors from missing `$schema` in RBAC init file when using MSSQL (PoohOka)
|
||||
- Bug #17434: IE Ajax redirect fix for non 11.0 versions (kamarton)
|
||||
- Bug #17670: Fix overriding core component class using `__class` (sup-ham, samdark)
|
||||
|
||||
2.0.29 October 22, 2019
|
||||
-----------------------
|
||||
|
@ -258,7 +258,7 @@ abstract class Application extends Module
|
||||
foreach ($this->coreComponents() as $id => $component) {
|
||||
if (!isset($config['components'][$id])) {
|
||||
$config['components'][$id] = $component;
|
||||
} elseif (is_array($config['components'][$id]) && !isset($config['components'][$id]['class'])) {
|
||||
} elseif (is_array($config['components'][$id]) && !isset($config['components'][$id]['class']) && !isset($config['components'][$id]['__class'])) {
|
||||
$config['components'][$id]['class'] = $component['class'];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user