mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
fixed test break.
This commit is contained in:
@ -207,13 +207,11 @@ abstract class Application extends Module
|
||||
}
|
||||
|
||||
// merge core components with custom components
|
||||
if (!empty($config['components'])) {
|
||||
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'])) {
|
||||
$config['components'][$id]['class'] = $component['class'];
|
||||
}
|
||||
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'])) {
|
||||
$config['components'][$id]['class'] = $component['class'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user