abstract class Minifier

Properties

string $cacheDir
bool $keepGoing

Methods

string
minify(string $src)

Minify given JavaScript source

string
get(string $src)

Minify given JavaScript source and cache the result if applicable

array|string
getCacheDifferentiator()

Return a value that uniquely identifies this minifier's configuration

string
getFromCache(string $src)

Get the minified source from cache, or minify and cache the result

Details

at line 30
abstract string minify(string $src)

Minify given JavaScript source

Parameters

string $src

JavaScript source

Return Value

string

Minified source

at line 38
string get(string $src)

Minify given JavaScript source and cache the result if applicable

Parameters

string $src

JavaScript source

Return Value

string

Minified source

at line 60
array|string getCacheDifferentiator()

Return a value that uniquely identifies this minifier's configuration

Return Value

array|string

at line 71
protected string getFromCache(string $src)

Get the minified source from cache, or minify and cache the result

Parameters

string $src

JavaScript source

Return Value

string

Minified source