Twig.php 825 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 = [];
  13. $this->path = $path;
  14. }
  15. protected function doDisplay(array $context, array $blocks = [])
  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 [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. }