class LessCompiler extends RevisionCompiler

Constants

REV_MANIFEST

EMPTY_REVISION

Properties

protected Filesystem $assetsDir from RevisionCompiler
protected string $filename from RevisionCompiler
protected callable[] $sourcesCallbacks from RevisionCompiler
protected string $cacheDir
protected array $importDirs

Methods

__construct(Filesystem $assetsDir, string $filename)

No description

string
getFilename()

No description

setFilename(string $filename)

No description

commit()

No description

addSources(callable $callback)

No description

SourceInterface[]
getSources()

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
getFilenameForRevision(string $revision)

Get the filename for the given revision.

string|null
getRevision()

No description

putRevision(string|null $revision)

No description

string
calculateRevision(array $sources)

No description

mixed
getCacheDifferentiator()

No description

flush()

No description

delete(string $file)

No description

string
getCacheDir()

No description

setCacheDir(string $cacheDir)

No description

array
getImportDirs()

No description

setImportDirs(array $importDirs)

No description

Details

__construct(Filesystem $assetsDir, string $filename)

Parameters

Filesystem $assetsDir
string $filename

string getFilename()

Return Value

string

setFilename(string $filename)

Parameters

string $filename

addSources(callable $callback)

Parameters

callable $callback

protected SourceInterface[] getSources()

Return Value

SourceInterface[]

string|null getUrl()

Return Value

string|null

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

Parameters

string $file
array $sources

Return Value

bool true if the file was written, false if there was nothing to write

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 getFilenameForRevision(string $revision)

Get the filename for the given revision.

Parameters

string $revision

Return Value

string

protected string|null getRevision()

Return Value

string|null

protected putRevision(string|null $revision)

Parameters

string|null $revision

protected string calculateRevision(array $sources)

Parameters

array $sources

Return Value

string

protected mixed getCacheDifferentiator()

Return Value

mixed

protected delete(string $file)

Parameters

string $file

string getCacheDir()

Return Value

string

setCacheDir(string $cacheDir)

Parameters

string $cacheDir

array getImportDirs()

Return Value

array

setImportDirs(array $importDirs)

Parameters

array $importDirs