Skip to content

Commit

Permalink
[TASK] Upgrade for TYPO 10 (#28)
Browse files Browse the repository at this point in the history
* [TASK] Remove  variable

* [TASK] Update SCSS PHP to version 1.0.8

* [TASK] Change requirements to make branch typo3-10 installable with TYPO3 9

Co-authored-by: Christian Bülter <[email protected]>
  • Loading branch information
tdeuling and Christian Bülter authored Jan 28, 2021
1 parent 2db7d34 commit cf121fa
Show file tree
Hide file tree
Showing 39 changed files with 5,524 additions and 2,293 deletions.
11 changes: 6 additions & 5 deletions Classes/Parser/ScssParser.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

namespace KayStrobach\DyncssScss\Parser;
use Exception;

class ScssParser extends \KayStrobach\Dyncss\Parser\AbstractParser
{
Expand All @@ -9,12 +10,12 @@ public function __construct()
parent::__construct();
// ensure no one else has loaded lessc already ;)
if (!defined('TYPO3_COMPOSER_MODE') || !TYPO3_COMPOSER_MODE) {
if (!class_exists('\Leafo\ScssPhp\Compiler')) {
include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('dyncss_scss') . 'Resources/Private/Php/scss/scss.inc.php');
if (!class_exists('\ScssPhp\ScssPhp\Compiler')) {
include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('dyncss_scss') . 'Resources/Private/Php/scssphp/scss.inc.php');
}
}
// build instance to usage
$this->parser = new \Leafo\ScssPhp\Compiler();
$this->parser = new \ScssPhp\ScssPhp\Compiler();
}
/**
* @param $string
Expand Down Expand Up @@ -56,7 +57,7 @@ protected function _compileFile($inputFilename, $preparedFilename, $outputFilena
*/
public function getVersion()
{
return \Leafo\ScssPhp\Version::VERSION;
return \ScssPhp\ScssPhp\Version::VERSION;
}

/**
Expand All @@ -65,7 +66,7 @@ public function getVersion()
*/
public function getParserHomepage()
{
return 'http://leafo.github.io/scssphp';
return 'https://scssphp.github.io/scssphp/';
}

/**
Expand Down
41 changes: 0 additions & 41 deletions Resources/Private/Php/scss/composer.json

This file was deleted.

Loading

0 comments on commit cf121fa

Please sign in to comment.