/** * Parse given css file with given vars. * * @param string $file * @param array $vars * * @return string */ public function parse($file, array $vars, $custom) { $this->parser->parseFile($this->app['base_dir'] . '/assets/less/vendor/bootstrap/' . $file . '.less', $this->app['base_url']); $this->parser->modifyVars($vars); $css = $this->parser->getCss(); //parse custom less if any passed if ($custom) { $this->parser->reset(); $customCss = $this->parser->parse($custom)->getCss(); } else { $customCss = ''; } return $css . $customCss; }