Add compatibility layer from leafo/scssphp to scssphp/scssphp
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 30 Jun 2020 07:30:09 +0000 (09:30 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 30 Jun 2020 07:37:22 +0000 (09:37 +0200)
commit9bfa7303627983c13607536aae839e7e0ebb0968
tree9212a6867e225a5a71d4bdfc286937ad1fb0c875
parent73ef62598e773a44112f61d2a7c2c92ac0ee8efc
Add compatibility layer from leafo/scssphp to scssphp/scssphp

The basic usage of this compatibility layer appears to work well:

A CSS file can be compiled from the default style, without needing any
additional adjustments.

What this compatibility layer cannot do is rewrite the Exceptions that
are thrown by scssphp/scssphp. A strict catch block catching a specific
Exception, such as `\Leafo\ScssPhp\Exception\ParserException` will not
match the aliased `ScssPhp\ScssPhp\Exception\ParserException`.

Resolves #3398
wcfsetup/install/files/lib/core.functions.php
wcfsetup/install/files/lib/system/style/scssphp/scss.inc.php