/** * @param string $filename * @param string $source * @return string */ public function convertSource($filename, $source) { $compiler = new Compiler($this->twigEnvironment); $code = $compiler->compileSource($source); return $this->exportHandler->export($filename, $code); }