Skip to content

Commit

Permalink
Merge pull request symfony#329 from shql/master
Browse files Browse the repository at this point in the history
Added support for compass fonts_dir config entry
  • Loading branch information
stof committed Nov 26, 2012
2 parents 693671e + 487d0ca commit 2f2854c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Assetic/Filter/CompassFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class CompassFilter implements FilterInterface
private $noLineComments;
private $imagesDir;
private $javascriptsDir;
private $fontsDir;

// compass configuration file options
private $plugins = array();
Expand Down Expand Up @@ -126,6 +127,11 @@ public function setJavascriptsDir($javascriptsDir)
$this->javascriptsDir = $javascriptsDir;
}

public function setFontsDir($fontsDir)
{
$this->fontsDir = $fontsDir;
}

// compass configuration file options setters
public function setPlugins(array $plugins)
{
Expand Down Expand Up @@ -276,6 +282,10 @@ public function filterLoad(AssetInterface $asset)
$optionsConfig['http_javascripts_path'] = $this->httpJavascriptsPath;
}

if ($this->fontsDir) {
$optionsConfig['fonts_dir'] = $this->fontsDir;
}

// options in configuration file
if (count($optionsConfig)) {
$config = array();
Expand Down

0 comments on commit 2f2854c

Please sign in to comment.