PHP Class Assetic\Filter\Yui\BaseCompressorFilter

Author: Kris Wallsmith ([email protected])
Inheritance: implements Assetic\Filter\FilterInterface
Datei anzeigen Open project: pmjones/php-framework-benchmarks

Public Methods

Method Description
__construct ( $jarPath, $javaPath = '/usr/bin/java' )
filterLoad ( Assetic\Asset\AssetInterface $asset )
setCharset ( $charset )
setLineBreak ( $lineBreak )

Protected Methods

Method Description
compress ( string $content, string $type, array $options = [] ) : string Compresses a string.

Method Details

__construct() public method

public __construct ( $jarPath, $javaPath = '/usr/bin/java' )

compress() protected method

Compresses a string.
protected compress ( string $content, string $type, array $options = [] ) : string
$content string The content to compress
$type string The type of content, either "js" or "css"
$options array An indexed array of additional options
return string The compressed content

filterLoad() public method

public filterLoad ( Assetic\Asset\AssetInterface $asset )
$asset Assetic\Asset\AssetInterface

setCharset() public method

public setCharset ( $charset )

setLineBreak() public method

public setLineBreak ( $lineBreak )