class LessCompiler extends RevisionCompiler

Traits

Constants

EMPTY_REVISION

Properties

protected callable[] $sourcesCallbacks from HasSources
protected $versioner from RevisionCompiler
protected $cacheDir
protected $importDirs
protected $customFunctions
protected $lessImportOverrides
protected $fileSourceOverrides

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

string
getCacheDir()

No description

void
setCacheDir(string $cacheDir)

No description

array
getImportDirs()

No description

void
setImportDirs(array $importDirs)

No description

void
setLessImportOverrides(array $lessImportOverrides)

No description

void
setFileSourceOverrides(array $fileSourceOverrides)

No description

void
setCustomFunctions(array $customFunctions)

No description

array
overrideSources(array $sources)

No description

callable
overrideImports(array $sources)

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

Exceptions

Less_Exception_Parser

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

string getCacheDir()

Return Value

string

void setCacheDir(string $cacheDir)

Parameters

string $cacheDir

Return Value

void

array getImportDirs()

Return Value

array

void setImportDirs(array $importDirs)

Parameters

array $importDirs

Return Value

void

void setLessImportOverrides(array $lessImportOverrides)

Parameters

array $lessImportOverrides

Return Value

void

void setFileSourceOverrides(array $fileSourceOverrides)

Parameters

array $fileSourceOverrides

Return Value

void

void setCustomFunctions(array $customFunctions)

Parameters

array $customFunctions

Return Value

void

protected array overrideSources(array $sources)

Parameters

array $sources

Return Value

array

protected callable overrideImports(array $sources)

Parameters

array $sources

Return Value

callable