summaryrefslogtreecommitdiffstats
path: root/php-scssphp-pre-0-1-0-compat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-scssphp-pre-0-1-0-compat.patch')
-rw-r--r--php-scssphp-pre-0-1-0-compat.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/php-scssphp-pre-0-1-0-compat.patch b/php-scssphp-pre-0-1-0-compat.patch
new file mode 100644
index 0000000..6fa8467
--- /dev/null
+++ b/php-scssphp-pre-0-1-0-compat.patch
@@ -0,0 +1,21 @@
+diff --git a/classmap.php b/classmap.php
+index 543efb9..717d80d 100644
+--- a/classmap.php
++++ b/classmap.php
+@@ -13,6 +13,16 @@
+ */
+
+ /**
++ * Autoload register
++ */
++spl_autoload_register(function ($class) {
++ if (0 === strpos($class, 'Leafo\\ScssPhp\\')) {
++ $src = str_replace('\\', '/', $class) . '.php';
++ @include_once $src;
++ }
++});
++
++/**
+ * @deprecated since 0.1.0
+ */
+ class scssc extends \Leafo\ScssPhp\Compiler