var/cache/dev/twig/27/27b10c9abba0c90ecc4caeb993a8f9fb260e00f77fea5ad9505681a67417ec9f.php line 44

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @Twig/Exception/exception.json.twig */
  14. class __TwigTemplate_12b917805d6565e8f93adf583fb29e6bd292c5f7755f8f09f27c494e8e52ebb9 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Twig/Exception/exception.json.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Twig/Exception/exception.json.twig"));
  33.         // line 1
  34.         $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = (("The template \"" $this->getTemplateName()) . "\" is deprecated since Symfony 4.4, will be removed in 5.0.");
  35.         @trigger_error($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4." (\"@Twig/Exception/exception.json.twig\" at line 1)."E_USER_DEPRECATED);
  36.         // line 2
  37.         echo json_encode(["error" => ["code" => (isset($context["status_code"]) || array_key_exists("status_code"$context) ? $context["status_code"] : (function () { throw new RuntimeError('Variable "status_code" does not exist.'2$this->source); })()), "message" => (isset($context["status_text"]) || array_key_exists("status_text"$context) ? $context["status_text"] : (function () { throw new RuntimeError('Variable "status_text" does not exist.'2$this->source); })()), "exception" => twig_get_attribute($this->env$this->source, (isset($context["exception"]) || array_key_exists("exception"$context) ? $context["exception"] : (function () { throw new RuntimeError('Variable "exception" does not exist.'2$this->source); })()), "toarray", [], "any"falsefalsefalse2)]]);
  38.         echo "
  39. ";
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     public function getTemplateName()
  46.     {
  47.         return "@Twig/Exception/exception.json.twig";
  48.     }
  49.     public function isTraitable()
  50.     {
  51.         return false;
  52.     }
  53.     public function getDebugInfo()
  54.     {
  55.         return array (  46 => 2,  43 => 1,);
  56.     }
  57.     public function getSourceContext()
  58.     {
  59.         return new Source("{% deprecated 'The template \"' ~ _self ~'\" is deprecated since Symfony 4.4, will be removed in 5.0.' %}
  60. {{ { 'error': { 'code': status_code, 'message': status_text, 'exception': exception.toarray } }|json_encode|raw }}
  61. ""@Twig/Exception/exception.json.twig""/home/seewhen/uat.seewhen.co.uk/vendor/symfony/twig-bundle/Resources/views/Exception/exception.json.twig");
  62.     }
  63. }