class JsCompiler extends RevisionCompiler

Properties

protected string[] $files from RevisionCompiler
protected callable[] $strings from RevisionCompiler
protected bool $watch from RevisionCompiler
protected Repository $cache

Methods

__construct(string $path, string $filename, bool $watch = false, Repository $cache = null)

No description

setFilename(string $filename)

No description

addFile(string $file)

No description

addString(callable $callback)

No description

string
getFile()

No description

mixed
getCacheDifferentiator()

No description

string
format(string $string)

No description

string
compile()

No description

string
formatFile(string $file)

No description

string
getRevisionFile()

No description

string|null
getRevision()

No description

int
putRevision(string $revision)

No description

flush()

No description

string
minify(string $source)

No description

string
minifyWithClosureCompilerService(string $source)

No description

string
minifyWithFallback(string $source)

No description

Details

__construct(string $path, string $filename, bool $watch = false, Repository $cache = null)

Parameters

string $path
string $filename
bool $watch
Repository $cache

setFilename(string $filename)

Parameters

string $filename

addFile(string $file)

Parameters

string $file

addString(callable $callback)

Parameters

callable $callback

string getFile()

Return Value

string

protected mixed getCacheDifferentiator()

Return Value

mixed

protected string format(string $string)

Parameters

string $string

Return Value

string

string compile()

Return Value

string

protected string formatFile(string $file)

Parameters

string $file

Return Value

string

protected string getRevisionFile()

Return Value

string

protected string|null getRevision()

Return Value

string|null

protected int putRevision(string $revision)

Parameters

string $revision

Return Value

int

protected string minify(string $source)

Parameters

string $source

Return Value

string

protected string minifyWithClosureCompilerService(string $source)

Parameters

string $source

Return Value

string

protected string minifyWithFallback(string $source)

Parameters

string $source

Return Value

string