/** * TwigTemplateClient constructor. * Overrides the parent so I can setup any helper functions and interesting parser settings * * @param $templateClient Twig_Environment * @param $config Config */ public function __construct($templateClient, Config $config) { $this->config = $config; parent::__construct($templateClient); $lexer = $this->getLexer(); $this->templateClient->setLexer($lexer); }