From c46b35b13ca548feec6175830fce4f1cd147d3c2 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Fri, 21 Feb 2014 17:45:33 +0100 Subject: [PATCH] allow configuring asset converter property with default class --- framework/web/AssetManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/web/AssetManager.php b/framework/web/AssetManager.php index ab38b47e97..c600223ddf 100644 --- a/framework/web/AssetManager.php +++ b/framework/web/AssetManager.php @@ -156,6 +156,9 @@ class AssetManager extends Component if ($this->_converter === null) { $this->_converter = Yii::createObject(AssetConverter::className()); } elseif (is_array($this->_converter) || is_string($this->_converter)) { + if (is_array($this->_converter) && !isset($this->_converter['class'])) { + $this->_converter['class'] = AssetConverter::className(); + } $this->_converter = Yii::createObject($this->_converter); } return $this->_converter;