for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Pluggable themes for Yii2
*
* @link https://github.com/hiqdev/yii2-thememanager
* @package yii2-thememanager
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\thememanager;
use Yii;
* Asset Manager.
class AssetManager extends \yii\web\AssetManager
{
* @var string|AssetConverter
protected $_ac;
* {@inheritdoc}
public function getConverter()
if ($this->_ac === null) {
$this->_ac = Yii::createObject(AssetConverter::class);
} elseif (is_array($this->_ac) || is_string($this->_ac)) {
if (is_array($this->_ac) && !isset($this->_ac['class'])) {
$this->_ac['class'] = AssetConverter::class;
}
$this->_ac = Yii::createObject($this->_ac);
return $this->_ac;
public function setConverter($value)
$this->_ac = $value;