$arguments
$arguments : array
Option arguments to be passed to compiler
Base class for CSS Preprocessor. Provides basic configuration, Service Manager Factory Interface and compile method.
Child classes must implement getCommandArguments method and should override compiler, extensions and configurationKey methods.
compile(string $source, string|null $destination = null, array|string|null $include = null) : string
Compile to file. If destination is not specified return CSS.
string | $source | |
string|null | $destination | |
array|string|null | $include | Include path(s) to use |
on compilation error
Compiled CSS
setCache(string|array|\Zend\Cache\Storage\Adapter\AbstractAdapter $cache)
Set cache for CSS Preprocessor
Cache parameter can be an instance of \Zend\Cache\Storage\Adapter\AbstractAdapter, the name of a cache adapter class or an array of options to be passed to AbstractAdapter::factory()
string|array|\Zend\Cache\Storage\Adapter\AbstractAdapter | $cache |
on invalid cache
getCommandArguments(string $source, string $destination, array $includes) : string
Return command line arguments to compile source file or path. If destination is not specified command should print code to standard out.
string | $source | Source file or path |
string | $destination | Destination file or path |
array | $includes | List of include paths |