Exemple #1
0
 public function __construct(array $input, $pathToSassc = null)
 {
     $this->command = $pathToSassc;
     if (!$this->command) {
         $this->command = $this->findExecutable('sassc');
     }
     if (!$this->command) {
         throw new TaskException(__CLASS__, 'Sassc executable not found.');
     }
     parent::__construct($input);
 }
Exemple #2
0
 /**
  * Sets the formatter for scssphp
  *
  * The method setFormatter($formatterName) sets the current formatter to $formatterName,
  * the name of a class as a string that implements the formatting interface. See the source
  * for Leafo\ScssPhp\Formatter\Expanded for an example.
  *
  * Five formatters are included with leafo/scssphp:
  * - Leafo\ScssPhp\Formatter\Expanded
  * - Leafo\ScssPhp\Formatter\Nested (default)
  * - Leafo\ScssPhp\Formatter\Compressed
  * - Leafo\ScssPhp\Formatter\Compact
  * - Leafo\ScssPhp\Formatter\Crunched
  *
  * @link http://leafo.github.io/scssphp/docs/#output-formatting
  * @param string $formatterName
  * @return Scss
  */
 public function setFormatter($formatterName)
 {
     return parent::setFormatter($formatterName);
 }