|
|
|
@ -62,7 +62,7 @@ class AssetController extends Controller
|
|
|
|
|
*/ |
|
|
|
|
public $targets = []; |
|
|
|
|
/** |
|
|
|
|
* @var string|callback JavaScript file compressor. |
|
|
|
|
* @var string|callable JavaScript file compressor. |
|
|
|
|
* If a string, it is treated as shell command template, which should contain |
|
|
|
|
* placeholders {from} - source file name - and {to} - output file name. |
|
|
|
|
* Otherwise, it is treated as PHP callback, which should perform the compression. |
|
|
|
@ -72,7 +72,7 @@ class AssetController extends Controller
|
|
|
|
|
*/ |
|
|
|
|
public $jsCompressor = 'java -jar compiler.jar --js {from} --js_output_file {to}'; |
|
|
|
|
/** |
|
|
|
|
* @var string|callback CSS file compressor. |
|
|
|
|
* @var string|callable CSS file compressor. |
|
|
|
|
* If a string, it is treated as shell command template, which should contain |
|
|
|
|
* placeholders {from} - source file name - and {to} - output file name. |
|
|
|
|
* Otherwise, it is treated as PHP callback, which should perform the compression. |
|
|
|
@ -88,6 +88,7 @@ class AssetController extends Controller
|
|
|
|
|
*/ |
|
|
|
|
private $_assetManager = []; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Returns the asset manager instance. |
|
|
|
|
* @throws \yii\console\Exception on invalid configuration. |
|
|
|
|