diff --git a/framework/assets.php b/framework/assets.php new file mode 100644 index 0000000..5efa94a --- /dev/null +++ b/framework/assets.php @@ -0,0 +1,5 @@ + __DIR__ . '/web/assets', +); \ No newline at end of file diff --git a/framework/web/AssetManager.php b/framework/web/AssetManager.php index 3cb1e83..ccf6dd8 100644 --- a/framework/web/AssetManager.php +++ b/framework/web/AssetManager.php @@ -96,10 +96,11 @@ class AssetManager extends Component /** * @param string $name + * @param boolean $publish * @return AssetBundle * @throws InvalidParamException */ - public function getBundle($name) + public function getBundle($name, $publish = true) { if (!isset($this->bundles[$name])) { $manifest = Yii::getAlias("@{$name}/assets.php", false);