class
LessCompiler extends RevisionCompiler
Traits
Constants
Properties
protected callable[]
|
$sourcesCallbacks |
|
from HasSources |
|
protected
|
$versioner |
|
from RevisionCompiler |
|
protected
|
$cacheDir |
|
|
|
protected
|
$importDirs |
|
|
|
protected
|
$customFunctions |
|
|
|
protected
|
$lessImportOverrides |
|
|
|
protected
|
$fileSourceOverrides |
|
|
|
Methods
__construct(
Cloud $assetsDir, string $filename)
No description
void
commit(bool $force = false)
No description
bool
save(string $file, array $sources)
No description
string
compile(array $sources)
No description
string
format(string $string)
No description
void
delete(string $file)
No description
Details
void
addSources(callable $callback)
protected array
getSources()
abstract protected array
allowedSourceTypes()
__construct(Cloud $assetsDir, string $filename)
protected bool
save(string $file, array $sources)
protected string
compile(array $sources)
protected string
calculateRevision(array $sources)
protected array|null
getCacheDifferentiator()
void
setCacheDir(string $cacheDir)
void
setImportDirs(array $importDirs)
void
setLessImportOverrides(array $lessImportOverrides)
void
setFileSourceOverrides(array $fileSourceOverrides)
void
setCustomFunctions(array $customFunctions)
protected array
overrideSources(array $sources)
protected callable
overrideImports(array $sources)