class ScssCompilerCommands in SCSS/Less Compiler 8
ScssCompiler drush commands.
Hierarchy
- class \Drupal\scss_compiler\Commands\ScssCompilerCommands extends \Drush\Commands\DrushCommands
Expanded class hierarchy of ScssCompilerCommands
1 string reference to 'ScssCompilerCommands'
1 service uses ScssCompilerCommands
File
- src/
Commands/ ScssCompilerCommands.php, line 11
Namespace
Drupal\scss_compiler\CommandsView source
class ScssCompilerCommands extends DrushCommands {
/**
* Scss compiler service.
*
* @var \Drupal\scss_compiler\ScssCompilerInterface
*/
protected $scssCompiler;
/**
* ScssCompilerCommands constructor.
*
* @param \Drupal\scss_compiler\ScssCompilerInterface $scss_compiler
* ScssCompiler service.
*/
public function __construct(ScssCompilerInterface $scss_compiler) {
parent::__construct();
$this->scssCompiler = $scss_compiler;
}
/**
* Flush compiler cache.
*
* @command compiler:cr
* @usage drush ccr.
* @aliases ccr.
*/
public function flushCache() {
$this->scssCompiler
->flushCache();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ScssCompilerCommands:: |
protected | property | Scss compiler service. | |
ScssCompilerCommands:: |
public | function | Flush compiler cache. | |
ScssCompilerCommands:: |
public | function | ScssCompilerCommands constructor. |