Mercurial > hg > isophonics-drupal-site
annotate vendor/symfony/var-dumper/Tests/Fixtures/Twig.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 129ea1e6d783 |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 /* foo.twig */ |
Chris@0 | 4 class __TwigTemplate_VarDumperFixture_u75a09 extends Twig\Template |
Chris@0 | 5 { |
Chris@0 | 6 private $path; |
Chris@0 | 7 |
Chris@0 | 8 public function __construct(Twig\Environment $env = null, $path = null) |
Chris@0 | 9 { |
Chris@0 | 10 if (null !== $env) { |
Chris@0 | 11 parent::__construct($env); |
Chris@0 | 12 } |
Chris@0 | 13 $this->parent = false; |
Chris@17 | 14 $this->blocks = []; |
Chris@0 | 15 $this->path = $path; |
Chris@0 | 16 } |
Chris@0 | 17 |
Chris@17 | 18 protected function doDisplay(array $context, array $blocks = []) |
Chris@0 | 19 { |
Chris@0 | 20 // line 2 |
Chris@0 | 21 throw new \Exception('Foobar'); |
Chris@0 | 22 } |
Chris@0 | 23 |
Chris@0 | 24 public function getTemplateName() |
Chris@0 | 25 { |
Chris@0 | 26 return 'foo.twig'; |
Chris@0 | 27 } |
Chris@0 | 28 |
Chris@0 | 29 public function getDebugInfo() |
Chris@0 | 30 { |
Chris@17 | 31 return [20 => 1, 21 => 2]; |
Chris@0 | 32 } |
Chris@0 | 33 |
Chris@0 | 34 public function getSourceContext() |
Chris@0 | 35 { |
Chris@0 | 36 return new Twig\Source(" foo bar\n twig source\n\n", 'foo.twig', $this->path ?: __FILE__); |
Chris@0 | 37 } |
Chris@0 | 38 } |