Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/var-dumper/Tests/Fixtures/Twig.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 129ea1e6d783 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,38 @@ +<?php + +/* foo.twig */ +class __TwigTemplate_VarDumperFixture_u75a09 extends Twig\Template +{ + private $path; + + public function __construct(Twig\Environment $env = null, $path = null) + { + if (null !== $env) { + parent::__construct($env); + } + $this->parent = false; + $this->blocks = array(); + $this->path = $path; + } + + protected function doDisplay(array $context, array $blocks = array()) + { + // line 2 + throw new \Exception('Foobar'); + } + + public function getTemplateName() + { + return 'foo.twig'; + } + + public function getDebugInfo() + { + return array(20 => 1, 21 => 2); + } + + public function getSourceContext() + { + return new Twig\Source(" foo bar\n twig source\n\n", 'foo.twig', $this->path ?: __FILE__); + } +}