/**
  * Bootstraps the application.
  *
  * This method is called after all services are registered
  * and should be used for "dynamic" configuration (whenever
  * a service must be requested).
  *
  * @param  Application $app
  * @throws \InvalidArgumentException
  */
 public function boot(Application $app)
 {
     $app['assetic.filters'] = $app->share($app->extend('assetic.filters', function ($filters) use($app) {
         $filters['scssphp'] = $app->share(function () use($app) {
             $filter = new ScssphpFilter();
             $filter->enableCompass($app['assetic.filter.scssphp.compass']);
             $filter->setImportPaths($app['assetic.filter.scssphp.import_paths']);
             $filter->setVariables($app['assetic.filter.scssphp.variables']);
             $filter->setFormatter($app['assetic.filter.scssphp.formatter']);
             return $filter;
         });
         return $filters;
     }));
 }
Example #2
0
 public function filterLoad(AssetInterface $asset)
 {
     parent::setVariables($this->variables);
     parent::filterLoad($asset);
 }