class
Assets
A factory class for creating frontend asset compilers.
Properties
array
|
$sources |
|
|
|
protected string
|
$name |
|
|
|
protected Cloud
|
$assetsDir |
|
|
|
protected string
|
$cacheDir |
|
|
|
protected array
|
$lessImportDirs |
|
|
|
protected array
|
$lessImportOverrides |
|
|
|
protected array
|
$fileSourceOverrides |
|
|
|
protected array
|
$customFunctions |
|
|
|
Methods
__construct(string $name,
Cloud $assetsDir, string $cacheDir = null, array $lessImportDirs = null, array $customFunctions = [])
No description
js($sources)
No description
css($callback)
No description
setName(string $name)
No description
Details
__construct(string $name, Cloud $assetsDir, string $cacheDir = null, array $lessImportDirs = null, array $customFunctions = [])
protected
makeJsCompiler(string $filename)
setAssetsDir(Cloud $assetsDir)
string|null
getCacheDir()
setCacheDir(string|null $cacheDir)
array
getLessImportDirs()
setLessImportDirs(array $lessImportDirs)
addLessImportOverrides(array $lessImportOverrides)
addFileSourceOverrides(array $fileSourceOverrides)