Class lajax\assetminifier\minifiers\WebMinifier

Inheritancelajax\assetminifier\minifiers\WebMinifier » yii\base\Object
Implementslajax\assetminifier\minifiers\MinifierInterface
Subclasseslajax\assetminifier\minifiers\WebCssMinifier, lajax\assetminifier\minifiers\WebJsMinifier
Available since version1.0

Minify asset via web API.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
minify() Function for minifying the asset file (css, js) received as a parameter. lajax\assetminifier\minifiers\WebMinifier

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
curl() Method to maintain connection with web API. lajax\assetminifier\minifiers\WebMinifier

Method Details

curl() protected method

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.

minify() public method

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.