Sets the Parser instance.
Twig_ParserInterface A Twig_ParserInterface instance:
public function setParser(Twig_ParserInterface $parser) { $this->parser = $parser; }