66use EM \CssCompiler \Container \FileContainer ;
77use EM \CssCompiler \Exception \CompilerException ;
88use EM \CssCompiler \Exception \FileException ;
9- use Leafo \ScssPhp \Compiler as SASSCompiler ;
9+ use Leafo \ScssPhp \Compiler as SCSSCompiler ;
1010use Leafo \ScssPhp \Exception \ParserException ;
1111use lessc as LESSCompiler ;
1212use scss_compass as CompassCompiler ;
@@ -39,9 +39,9 @@ class Processor
3939 */
4040 private $ files = [];
4141 /**
42- * @var SASSCompiler
42+ * @var SCSSCompiler
4343 */
44- private $ sass ;
44+ private $ scss ;
4545 /**
4646 * @var LESSCompiler
4747 */
@@ -50,15 +50,10 @@ class Processor
5050 public function __construct (IOInterface $ io )
5151 {
5252 $ this ->io = $ io ;
53- $ this ->initCompilers ();
54- }
55-
56- protected function initCompilers ()
57- {
5853 $ this ->less = new LESSCompiler ();
59- $ this ->sass = new SASSCompiler ();
60- /** attaches compass functionality to the SASS compiler */
61- new CompassCompiler ($ this ->sass );
54+ $ this ->scss = new SCSSCompiler ();
55+ /** attaches compass functionality to the SCSS compiler */
56+ new CompassCompiler ($ this ->scss );
6257 }
6358
6459 /**
@@ -132,7 +127,7 @@ public function saveOutput()
132127 */
133128 public function processFiles ($ formatter )
134129 {
135- $ this ->sass ->setFormatter ($ this ->getFormatterClass ($ formatter ));
130+ $ this ->scss ->setFormatter ($ this ->getFormatterClass ($ formatter ));
136131 $ this ->io ->write ("<info>use ' {$ formatter }' formatting</info> " );
137132
138133 foreach ($ this ->files as $ file ) {
@@ -174,8 +169,8 @@ public function processFile(FileContainer $file)
174169 protected function compileSCSS (FileContainer $ file )
175170 {
176171 try {
177- $ this ->sass ->addImportPath (dirname ($ file ->getInputPath ()));
178- $ content = $ this ->sass ->compile ($ file ->getInputContent ());
172+ $ this ->scss ->addImportPath (dirname ($ file ->getInputPath ()));
173+ $ content = $ this ->scss ->compile ($ file ->getInputContent ());
179174
180175 return $ file ->setOutputContent ($ content );
181176 } catch (ParserException $ e ) {
0 commit comments