Twig.php 840 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /* foo.twig */
  3. class __TwigTemplate_VarDumperFixture_u75a09 extends Twig\Template
  4. {
  5. private $path;
  6. public function __construct(Twig\Environment $env = null, $path = null)
  7. {
  8. if (null !== $env) {
  9. parent::__construct($env);
  10. }
  11. $this->parent = false;
  12. $this->blocks = array();
  13. $this->path = $path;
  14. }
  15. protected function doDisplay(array $context, array $blocks = array())
  16. {
  17. // line 2
  18. throw new \Exception('Foobar');
  19. }
  20. public function getTemplateName()
  21. {
  22. return 'foo.twig';
  23. }
  24. public function getDebugInfo()
  25. {
  26. return array(20 => 1, 21 => 2);
  27. }
  28. public function getSourceContext()
  29. {
  30. return new Twig\Source(" foo bar\n twig source\n\n", 'foo.twig', $this->path ?: __FILE__);
  31. }
  32. }