class JsCompiler extends RevisionCompiler

Traits

Constants

EMPTY_REVISION

Properties

protected callable[] $sourcesCallbacks from HasSources
protected $versioner from RevisionCompiler

Methods

void
addSources(callable $callback)

No description

array
getSources()

No description

array
allowedSourceTypes()

No description

__construct(Cloud $assetsDir, string $filename)

No description

string|null
getFilename()

No description

void
setFilename(string $filename)

No description

void
commit(bool $force = false)

No description

string|null
getUrl()

No description

bool
save(string $file, array $sources)

No description

string
compile(array $sources)

No description

string
format(string $string)

No description

string
calculateRevision(array $sources)

No description

array|null
getCacheDifferentiator()

No description

void
flush()

No description

void
delete(string $file)

No description

Details

void addSources(callable $callback)

Parameters

callable $callback

Return Value

void

protected array getSources()

Return Value

array

abstract protected array allowedSourceTypes()

Return Value

array

__construct(Cloud $assetsDir, string $filename)

Parameters

Cloud $assetsDir
string $filename

string|null getFilename()

Return Value

string|null

void setFilename(string $filename)

Parameters

string $filename

Return Value

void

void commit(bool $force = false)

Parameters

bool $force

Return Value

void

string|null getUrl()

Return Value

string|null

protected bool save(string $file, array $sources)

Parameters

string $file
array $sources

Return Value

bool <p>true if the file was written, false if there was nothing to write</p>

protected string compile(array $sources)

Parameters

array $sources

Return Value

string

protected string format(string $string)

Parameters

string $string

Return Value

string

protected string calculateRevision(array $sources)

Parameters

array $sources

Return Value

string

protected array|null getCacheDifferentiator()

Return Value

array|null

void flush()

Return Value

void

protected void delete(string $file)

Parameters

string $file

Return Value

void