ClosureCompilerService
class ClosureCompilerService extends OnlineMinifier
Properties
string | $cacheDir | from Minifier | |
bool | $keepGoing | from Minifier | |
Client | $httpClient | from OnlineMinifier | |
string | $compilationLevel | ||
bool | $excludeDefaultExterns | ||
string | $externs | ||
string | $url |
Methods
Compile given JavaScript source via the Closure Compiler Service
Minify given JavaScript source and cache the result if applicable
Return a value that uniquely identifies this minifier's configuration
Get the minified source from cache, or minify and cache the result
Constructor
Decode the response returned by the Closure Compiler service
Generate the request body for given code
Query the Closure Compiler service
Details
at line 65
string
minify(string $src)
Compile given JavaScript source via the Closure Compiler Service
in
Minifier at line 38
string
get(string $src)
Minify given JavaScript source and cache the result if applicable
at line 47
array|string
getCacheDifferentiator()
Return a value that uniquely identifies this minifier's configuration
in
Minifier at line 71
protected string
getFromCache(string $src)
Get the minified source from cache, or minify and cache the result
at line 38
void
__construct()
Constructor
at line 83
protected string
decodeResponse(string $response)
Decode the response returned by the Closure Compiler service
at line 114
protected string
generateRequestBody(string $src)
Generate the request body for given code
at line 142
protected string|false
query(string $body)
Query the Closure Compiler service