Class lajax\assetminifier\minifiers\WebMinifier
| Inheritance | lajax\assetminifier\minifiers\WebMinifier » yii\base\Object |
|---|---|
| Implements | lajax\assetminifier\minifiers\MinifierInterface |
| Subclasses | lajax\assetminifier\minifiers\WebCssMinifier, lajax\assetminifier\minifiers\WebJsMinifier |
| Available since version | 1.0 |
Minify asset via web API.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| minify() | Function for minifying the asset file (css, js) received as a parameter. | lajax\assetminifier\minifiers\WebMinifier |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| curl() | Method to maintain connection with web API. | lajax\assetminifier\minifiers\WebMinifier |
Method Details
Method to maintain connection with web API.
| string curl( $params ) | ||
| $params | array | Array containing the asset file input to be minimised. |
| return | string | The asset file to be minimised. |
|---|---|---|
Function for minifying the asset file (css, js) received as a parameter.
| string minify( $path ) | ||
| $path | string | The path of the asset file to be minified. |
| return | string | The content of the asset file to be minified. |
|---|---|---|