ScssBuilderCommand
extends AbstractCssBuilderCommand
in package
Console command: build CSS from SCSS.
Tags
Table of Contents
- $cacheDir : string
- Cache directory for compiler
- $format : string
- Name of precompiler format
- __construct() : mixed
- Constructor
- configure() : void
- Configure the command.
- execute() : int
- Run the command.
- getCompiler() : ScssCompiler
- Build the LESS compiler.
Properties
$cacheDir
Cache directory for compiler
protected
string
$cacheDir
$format
Name of precompiler format
protected
string
$format
= 'SCSS'
Methods
__construct()
Constructor
public
__construct(string $cacheDir[, string|null $name = null ]) : mixed
Parameters
- $cacheDir : string
-
Cache directory for compiler
- $name : string|null = null
-
The name of the command; passing null means it must be set in configure()
Return values
mixed —configure()
Configure the command.
protected
configure() : void
Return values
void —execute()
Run the command.
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
-
Input object
- $output : OutputInterface
-
Output object
Return values
int —0 for success
getCompiler()
Build the LESS compiler.
protected
getCompiler(OutputInterface $output) : ScssCompiler
Parameters
- $output : OutputInterface
-
Output object