|
|
@ -131,7 +131,7 @@ class AssetManager extends Component |
|
|
|
if ($this->bundles[$name] instanceof AssetBundle) { |
|
|
|
if ($this->bundles[$name] instanceof AssetBundle) { |
|
|
|
return $this->bundles[$name]; |
|
|
|
return $this->bundles[$name]; |
|
|
|
} elseif (is_array($this->bundles[$name])) { |
|
|
|
} elseif (is_array($this->bundles[$name])) { |
|
|
|
$bundle = Yii::createObject(array_merge(array('class' => $name), $this->bundles[$name])); |
|
|
|
$bundle = Yii::createObject(array_merge(['class' => $name], $this->bundles[$name])); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
throw new InvalidConfigException("Invalid asset bundle: $name"); |
|
|
|
throw new InvalidConfigException("Invalid asset bundle: $name"); |
|
|
|
} |
|
|
|
} |
|
|
|