Chris@0: parent = false; Chris@17: $this->blocks = []; Chris@0: $this->path = $path; Chris@0: } Chris@0: Chris@17: protected function doDisplay(array $context, array $blocks = []) Chris@0: { Chris@0: // line 2 Chris@0: throw new \Exception('Foobar'); Chris@0: } Chris@0: Chris@0: public function getTemplateName() Chris@0: { Chris@0: return 'foo.twig'; Chris@0: } Chris@0: Chris@0: public function getDebugInfo() Chris@0: { Chris@17: return [20 => 1, 21 => 2]; Chris@0: } Chris@0: Chris@0: public function getSourceContext() Chris@0: { Chris@0: return new Twig\Source(" foo bar\n twig source\n\n", 'foo.twig', $this->path ?: __FILE__); Chris@0: } Chris@0: }