var/cache/dev/twig/dd/dd9c7f5d2738b330db740a6898c0cddd95b44d5ffd36742418006dc27493fc7b.php line 33

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/trace.html.twig */
  14. class __TwigTemplate_55a8868b292fb4b81e74fec6e164719f54c056e4a760dfb8bc79bf787af964e4 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_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Twig/Exception/trace.html.twig"));
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Twig/Exception/trace.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Twig/Exception/trace.html.twig"));
  35.         // line 1
  36.         echo "<div class=\"trace-line-header break-long-words ";
  37.         echo ((((twig_get_attribute($this->env$this->source, ($context["trace"] ?? null), "file", [], "any"truetruefalse1)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["trace"] ?? null), "file", [], "any"falsefalsefalse1), false)) : (false))) ? ("sf-toggle") : (""));
  38.         echo "\" data-toggle-selector=\"#trace-html-";
  39.         echo twig_escape_filter($this->env, (isset($context["prefix"]) || array_key_exists("prefix"$context) ? $context["prefix"] : (function () { throw new RuntimeError('Variable "prefix" does not exist.'1$this->source); })()), "html"nulltrue);
  40.         echo "-";
  41.         echo twig_escape_filter($this->env, (isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'1$this->source); })()), "html"nulltrue);
  42.         echo "\" data-toggle-initial=\"";
  43.         echo ((((isset($context["style"]) || array_key_exists("style"$context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.'1$this->source); })()) == "expanded")) ? ("display") : (""));
  44.         echo "\">
  45.     ";
  46.         // line 2
  47.         if (((twig_get_attribute($this->env$this->source, ($context["trace"] ?? null), "file", [], "any"truetruefalse2)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["trace"] ?? null), "file", [], "any"falsefalsefalse2), false)) : (false))) {
  48.             // line 3
  49.             echo "        <span class=\"icon icon-close\">";
  50.             echo twig_include($this->env$context"@Twig/images/icon-minus-square.svg");
  51.             echo "</span>
  52.         <span class=\"icon icon-open\">";
  53.             // line 4
  54.             echo twig_include($this->env$context"@Twig/images/icon-plus-square.svg");
  55.             echo "</span>
  56.     ";
  57.         }
  58.         // line 6
  59.         echo "
  60.     ";
  61.         // line 7
  62.         if ((((isset($context["style"]) || array_key_exists("style"$context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.'7$this->source); })()) != "compact") && twig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'7$this->source); })()), "function", [], "any"falsefalsefalse7))) {
  63.             // line 8
  64.             echo "        <span class=\"trace-class\">";
  65.             echo $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->abbrClass(twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'8$this->source); })()), "class", [], "any"falsefalsefalse8), "html"nulltrue));
  66.             echo "</span>";
  67.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'8$this->source); })()), "type", [], "any"falsefalsefalse8))) {
  68.                 echo "<span class=\"trace-type\">";
  69.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'8$this->source); })()), "type", [], "any"falsefalsefalse8), "html"nulltrue);
  70.                 echo "</span>";
  71.             }
  72.             echo "<span class=\"trace-method\">";
  73.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'8$this->source); })()), "function", [], "any"falsefalsefalse8), "html"nulltrue);
  74.             echo "</span><span class=\"trace-arguments\">(";
  75.             echo $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->formatArgs(twig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'8$this->source); })()), "args", [], "any"falsefalsefalse8));
  76.             echo ")</span>
  77.     ";
  78.         }
  79.         // line 10
  80.         echo "
  81.     ";
  82.         // line 11
  83.         if (((twig_get_attribute($this->env$this->source, ($context["trace"] ?? null), "file", [], "any"truetruefalse11)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["trace"] ?? null), "file", [], "any"falsefalsefalse11), false)) : (false))) {
  84.             // line 12
  85.             echo "        ";
  86.             $context["line_number"] = ((twig_get_attribute($this->env$this->source, ($context["trace"] ?? null), "line", [], "any"truetruefalse12)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["trace"] ?? null), "line", [], "any"falsefalsefalse12), 1)) : (1));
  87.             // line 13
  88.             echo "        ";
  89.             $context["file_link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(twig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'13$this->source); })()), "file", [], "any"falsefalsefalse13), (isset($context["line_number"]) || array_key_exists("line_number"$context) ? $context["line_number"] : (function () { throw new RuntimeError('Variable "line_number" does not exist.'13$this->source); })()));
  90.             // line 14
  91.             echo "        ";
  92.             $context["file_path"] = twig_replace_filter(twig_striptags($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->formatFile(twig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'14$this->source); })()), "file", [], "any"falsefalsefalse14), (isset($context["line_number"]) || array_key_exists("line_number"$context) ? $context["line_number"] : (function () { throw new RuntimeError('Variable "line_number" does not exist.'14$this->source); })()))), [(" at line " . (isset($context["line_number"]) || array_key_exists("line_number"$context) ? $context["line_number"] : (function () { throw new RuntimeError('Variable "line_number" does not exist.'14$this->source); })())) => ""]);
  93.             // line 15
  94.             echo "        ";
  95.             $context["file_path_parts"] = twig_split_filter($this->env, (isset($context["file_path"]) || array_key_exists("file_path"$context) ? $context["file_path"] : (function () { throw new RuntimeError('Variable "file_path" does not exist.'15$this->source); })()), twig_constant("DIRECTORY_SEPARATOR"));
  96.             // line 16
  97.             echo "
  98.         <span class=\"block trace-file-path\">
  99.             in
  100.             <a href=\"";
  101.             // line 19
  102.             echo twig_escape_filter($this->env, (isset($context["file_link"]) || array_key_exists("file_link"$context) ? $context["file_link"] : (function () { throw new RuntimeError('Variable "file_link" does not exist.'19$this->source); })()), "html"nulltrue);
  103.             echo "\">";
  104.             echo twig_escape_filter($this->envtwig_join_filter(twig_slice($this->env, (isset($context["file_path_parts"]) || array_key_exists("file_path_parts"$context) ? $context["file_path_parts"] : (function () { throw new RuntimeError('Variable "file_path_parts" does not exist.'19$this->source); })()), 0,  -1), twig_constant("DIRECTORY_SEPARATOR")), "html"nulltrue);
  105.             echo twig_escape_filter($this->envtwig_constant("DIRECTORY_SEPARATOR"), "html"nulltrue);
  106.             echo "<strong>";
  107.             echo twig_escape_filter($this->envtwig_last($this->env, (isset($context["file_path_parts"]) || array_key_exists("file_path_parts"$context) ? $context["file_path_parts"] : (function () { throw new RuntimeError('Variable "file_path_parts" does not exist.'19$this->source); })())), "html"nulltrue);
  108.             echo "</strong></a>";
  109.             // line 20
  110.             if ((((isset($context["style"]) || array_key_exists("style"$context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.'20$this->source); })()) == "compact") && twig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'20$this->source); })()), "function", [], "any"falsefalsefalse20))) {
  111.                 echo "<span class=\"trace-type\">";
  112.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'20$this->source); })()), "type", [], "any"falsefalsefalse20), "html"nulltrue);
  113.                 echo "</span><span class=\"trace-method\">";
  114.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'20$this->source); })()), "function", [], "any"falsefalsefalse20), "html"nulltrue);
  115.                 echo "</span>";
  116.             }
  117.             // line 21
  118.             echo "            (line ";
  119.             echo twig_escape_filter($this->env, (isset($context["line_number"]) || array_key_exists("line_number"$context) ? $context["line_number"] : (function () { throw new RuntimeError('Variable "line_number" does not exist.'21$this->source); })()), "html"nulltrue);
  120.             echo ")
  121.         </span>
  122.     ";
  123.         }
  124.         // line 24
  125.         echo "</div>
  126. ";
  127.         // line 25
  128.         if (((twig_get_attribute($this->env$this->source, ($context["trace"] ?? null), "file", [], "any"truetruefalse25)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["trace"] ?? null), "file", [], "any"falsefalsefalse25), false)) : (false))) {
  129.             // line 26
  130.             echo "    <div id=\"trace-html-";
  131.             echo twig_escape_filter($this->env, (((isset($context["prefix"]) || array_key_exists("prefix"$context) ? $context["prefix"] : (function () { throw new RuntimeError('Variable "prefix" does not exist.'26$this->source); })()) . "-") . (isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'26$this->source); })())), "html"nulltrue);
  132.             echo "\" class=\"trace-code sf-toggle-content\">
  133.         ";
  134.             // line 27
  135.             echo twig_replace_filter($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->fileExcerpt(twig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'27$this->source); })()), "file", [], "any"falsefalsefalse27), twig_get_attribute($this->env$this->source, (isset($context["trace"]) || array_key_exists("trace"$context) ? $context["trace"] : (function () { throw new RuntimeError('Variable "trace" does not exist.'27$this->source); })()), "line", [], "any"falsefalsefalse27), 5), ["#DD0000" => "var(--highlight-string)""#007700" => "var(--highlight-keyword)""#0000BB" => "var(--highlight-default)""#FF8000" => "var(--highlight-comment)"]);
  136.             // line 32
  137.             echo "
  138.     </div>
  139. ";
  140.         }
  141.         
  142.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  143.         
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  145.         
  146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  147.     }
  148.     public function getTemplateName()
  149.     {
  150.         return "@Twig/Exception/trace.html.twig";
  151.     }
  152.     public function isTraitable()
  153.     {
  154.         return false;
  155.     }
  156.     public function getDebugInfo()
  157.     {
  158.         return array (  147 => 32,  145 => 27,  140 => 26,  138 => 25,  135 => 24,  128 => 21,  120 => 20,  112 => 19,  107 => 16,  104 => 15,  101 => 14,  98 => 13,  95 => 12,  93 => 11,  90 => 10,  74 => 8,  72 => 7,  69 => 6,  64 => 4,  59 => 3,  57 => 2,  46 => 1,);
  159.     }
  160.     public function getSourceContext()
  161.     {
  162.         return new Source("<div class=\"trace-line-header break-long-words {{ trace.file|default(false) ? 'sf-toggle' }}\" data-toggle-selector=\"#trace-html-{{ prefix }}-{{ i }}\" data-toggle-initial=\"{{ style == 'expanded' ? 'display' }}\">
  163.     {% if trace.file|default(false) %}
  164.         <span class=\"icon icon-close\">{{ include('@Twig/images/icon-minus-square.svg') }}</span>
  165.         <span class=\"icon icon-open\">{{ include('@Twig/images/icon-plus-square.svg') }}</span>
  166.     {% endif %}
  167.     {% if style != 'compact' and trace.function %}
  168.         <span class=\"trace-class\">{{ trace.class|abbr_class }}</span>{% if trace.type is not empty %}<span class=\"trace-type\">{{ trace.type }}</span>{% endif %}<span class=\"trace-method\">{{ trace.function }}</span><span class=\"trace-arguments\">({{ trace.args|format_args }})</span>
  169.     {% endif %}
  170.     {% if trace.file|default(false) %}
  171.         {% set line_number = trace.line|default(1) %}
  172.         {% set file_link = trace.file|file_link(line_number) %}
  173.         {% set file_path = trace.file|format_file(line_number)|striptags|replace({ (' at line ' ~ line_number): '' }) %}
  174.         {% set file_path_parts = file_path|split(constant('DIRECTORY_SEPARATOR')) %}
  175.         <span class=\"block trace-file-path\">
  176.             in
  177.             <a href=\"{{ file_link }}\">{{ file_path_parts[:-1]|join(constant('DIRECTORY_SEPARATOR')) }}{{ constant('DIRECTORY_SEPARATOR') }}<strong>{{ file_path_parts|last }}</strong></a>
  178.             {%- if style == 'compact' and trace.function %}<span class=\"trace-type\">{{ trace.type }}</span><span class=\"trace-method\">{{ trace.function }}</span>{% endif %}
  179.             (line {{ line_number }})
  180.         </span>
  181.     {% endif %}
  182. </div>
  183. {% if trace.file|default(false) %}
  184.     <div id=\"trace-html-{{ prefix ~ '-' ~ i }}\" class=\"trace-code sf-toggle-content\">
  185.         {{ trace.file|file_excerpt(trace.line, 5)|replace({
  186.             '#DD0000': 'var(--highlight-string)',
  187.             '#007700': 'var(--highlight-keyword)',
  188.             '#0000BB': 'var(--highlight-default)',
  189.             '#FF8000': 'var(--highlight-comment)'
  190.         })|raw }}
  191.     </div>
  192. {% endif %}
  193. ""@Twig/Exception/trace.html.twig""/var/www/researchguide.net/preprod/shared/vendor/symfony/twig-bundle/Resources/views/Exception/trace.html.twig");
  194.     }
  195. }