mirror of
https://github.com/pattern-lab/patternlab-php.git
synced 2025-03-15 19:39:42 +01:00
use the autoloader to load the cssrulesaver library
This commit is contained in:
parent
ea09a98818
commit
ab1db5868d
@ -1078,7 +1078,10 @@ class Builder {
|
||||
*/
|
||||
protected function initializeCSSRuleSaver() {
|
||||
|
||||
$this->cssRuleSaver = new \cssRuleSaver;
|
||||
$loader = new \SplClassLoader('CSSRuleSaver', __DIR__.'/../../lib');
|
||||
$loader->register();
|
||||
|
||||
$this->cssRuleSaver = new \CSSRuleSaver\CSSRuleSaver;
|
||||
|
||||
foreach(glob($this->sd."/css/*.css") as $filename) {
|
||||
$this->cssRuleSaver->loadCSS($filename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user