1
0
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:
Dave Olsen 2014-01-22 22:07:47 -05:00
parent ea09a98818
commit ab1db5868d

View File

@ -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);