mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixed yii\console\controllers\AssetController
looses bundle override configuration, which makes it external one
This commit is contained in:
@ -418,10 +418,9 @@ class AssetController extends Controller
|
||||
if (!$this->isBundleExternal($sourceBundle)) {
|
||||
$depends[] = $target;
|
||||
}
|
||||
$targets[$bundle] = Yii::createObject([
|
||||
'class' => strpos($bundle, '\\') !== false ? $bundle : 'yii\\web\\AssetBundle',
|
||||
'depends' => $depends,
|
||||
]);
|
||||
$targetBundle = clone $sourceBundle;
|
||||
$targetBundle->depends = $depends;
|
||||
$targets[$bundle] = $targetBundle;
|
||||
}
|
||||
|
||||
return $targets;
|
||||
|
Reference in New Issue
Block a user