var/cache/dev/twig/16/164de7cfb6c13d9937b2e8ec75c55247.php line 50

  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. /* @Debug/Profiler/dump.html.twig */
  14. class __TwigTemplate_41f95fafe1952b9fd136e3a570b80fdc extends 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->blocks = [
  23.             'toolbar' => [$this'block_toolbar'],
  24.             'menu' => [$this'block_menu'],
  25.             'panel' => [$this'block_panel'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@WebProfiler/Profiler/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Debug/Profiler/dump.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Debug/Profiler/dump.html.twig"));
  40.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@Debug/Profiler/dump.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_toolbar($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  55.         // line 4
  56.         echo "    ";
  57.         if (twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'4$this->source); })()), "dumpsCount", [], "any"falsefalsefalse4)) {
  58.             // line 5
  59.             echo "        ";
  60.             ob_start();
  61.             // line 6
  62.             echo "            ";
  63.             echo twig_source($this->env"@Debug/Profiler/icon.svg");
  64.             echo "
  65.             <span class=\"sf-toolbar-value\">";
  66.             // line 7
  67.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'7$this->source); })()), "dumpsCount", [], "any"falsefalsefalse7), "html"nulltrue);
  68.             echo "</span>
  69.         ";
  70.             $context["icon"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  71.             // line 9
  72.             echo "
  73.         ";
  74.             // line 10
  75.             ob_start();
  76.             // line 11
  77.             echo "            ";
  78.             $context['_parent'] = $context;
  79.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'11$this->source); })()), "getDumps", [=> "html"], "method"falsefalsefalse11));
  80.             foreach ($context['_seq'] as $context["_key"] => $context["dump"]) {
  81.                 // line 12
  82.                 echo "                <div class=\"sf-toolbar-info-piece\">
  83.                     <span>
  84.                     ";
  85.                 // line 14
  86.                 if (twig_get_attribute($this->env$this->source$context["dump"], "file", [], "any"falsefalsefalse14)) {
  87.                     // line 15
  88.                     echo "                        ";
  89.                     $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(twig_get_attribute($this->env$this->source$context["dump"], "file", [], "any"falsefalsefalse15), twig_get_attribute($this->env$this->source$context["dump"], "line", [], "any"falsefalsefalse15));
  90.                     // line 16
  91.                     echo "                        ";
  92.                     if ((isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'16$this->source); })())) {
  93.                         // line 17
  94.                         echo "                            <a href=\"";
  95.                         echo twig_escape_filter($this->env, (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'17$this->source); })()), "html"nulltrue);
  96.                         echo "\" title=\"";
  97.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "file", [], "any"falsefalsefalse17), "html"nulltrue);
  98.                         echo "\">";
  99.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "name", [], "any"falsefalsefalse17), "html"nulltrue);
  100.                         echo "</a>
  101.                         ";
  102.                     } else {
  103.                         // line 19
  104.                         echo "                            <abbr title=\"";
  105.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "file", [], "any"falsefalsefalse19), "html"nulltrue);
  106.                         echo "\">";
  107.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "name", [], "any"falsefalsefalse19), "html"nulltrue);
  108.                         echo "</abbr>
  109.                         ";
  110.                     }
  111.                     // line 21
  112.                     echo "                    ";
  113.                 } else {
  114.                     // line 22
  115.                     echo "                        ";
  116.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "name", [], "any"falsefalsefalse22), "html"nulltrue);
  117.                     echo "
  118.                     ";
  119.                 }
  120.                 // line 24
  121.                 echo "                    </span>
  122.                     <span class=\"sf-toolbar-file-line\">line ";
  123.                 // line 25
  124.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "line", [], "any"falsefalsefalse25), "html"nulltrue);
  125.                 echo "</span>
  126.                     ";
  127.                 // line 27
  128.                 echo twig_get_attribute($this->env$this->source$context["dump"], "data", [], "any"falsefalsefalse27);
  129.                 echo "
  130.                 </div>
  131.             ";
  132.             }
  133.             $_parent $context['_parent'];
  134.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dump'], $context['_parent'], $context['loop']);
  135.             $context array_intersect_key($context$_parent) + $_parent;
  136.             // line 30
  137.             echo "        ";
  138.             $context["text"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  139.             // line 31
  140.             echo "
  141.         ";
  142.             // line 32
  143.             echo twig_include($this->env$context"@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => true]);
  144.             echo "
  145.     ";
  146.         }
  147.         
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  149.         
  150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  151.     }
  152.     // line 36
  153.     public function block_menu($context, array $blocks = [])
  154.     {
  155.         $macros $this->macros;
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  157.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  160.         // line 37
  161.         echo "    <span class=\"label ";
  162.         echo (((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'37$this->source); })()), "dumpsCount", [], "any"falsefalsefalse37) == 0)) ? ("disabled") : (""));
  163.         echo "\">
  164.         <span class=\"icon\">";
  165.         // line 38
  166.         echo twig_source($this->env"@Debug/Profiler/icon.svg");
  167.         echo "</span>
  168.         <strong>Debug</strong>
  169.     </span>
  170. ";
  171.         
  172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  173.         
  174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  175.     }
  176.     // line 43
  177.     public function block_panel($context, array $blocks = [])
  178.     {
  179.         $macros $this->macros;
  180.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  182.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  184.         // line 44
  185.         echo "    <h2>Dumped Contents</h2>
  186.     ";
  187.         // line 46
  188.         $context['_parent'] = $context;
  189.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'46$this->source); })()), "getDumps", [=> "html"], "method"falsefalsefalse46));
  190.         $context['_iterated'] = false;
  191.         $context['loop'] = [
  192.           'parent' => $context['_parent'],
  193.           'index0' => 0,
  194.           'index'  => 1,
  195.           'first'  => true,
  196.         ];
  197.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  198.             $length count($context['_seq']);
  199.             $context['loop']['revindex0'] = $length 1;
  200.             $context['loop']['revindex'] = $length;
  201.             $context['loop']['length'] = $length;
  202.             $context['loop']['last'] = === $length;
  203.         }
  204.         foreach ($context['_seq'] as $context["_key"] => $context["dump"]) {
  205.             // line 47
  206.             echo "        <div class=\"sf-dump sf-reset\">
  207.             <span class=\"metadata\">In
  208.                 ";
  209.             // line 49
  210.             if (twig_get_attribute($this->env$this->source$context["dump"], "line", [], "any"falsefalsefalse49)) {
  211.                 // line 50
  212.                 echo "                    ";
  213.                 $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(twig_get_attribute($this->env$this->source$context["dump"], "file", [], "any"falsefalsefalse50), twig_get_attribute($this->env$this->source$context["dump"], "line", [], "any"falsefalsefalse50));
  214.                 // line 51
  215.                 echo "                    ";
  216.                 if ((isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'51$this->source); })())) {
  217.                     // line 52
  218.                     echo "                        <a href=\"";
  219.                     echo twig_escape_filter($this->env, (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'52$this->source); })()), "html"nulltrue);
  220.                     echo "\" title=\"";
  221.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "file", [], "any"falsefalsefalse52), "html"nulltrue);
  222.                     echo "\">";
  223.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "name", [], "any"falsefalsefalse52), "html"nulltrue);
  224.                     echo "</a>
  225.                     ";
  226.                 } else {
  227.                     // line 54
  228.                     echo "                        <abbr title=\"";
  229.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "file", [], "any"falsefalsefalse54), "html"nulltrue);
  230.                     echo "\">";
  231.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "name", [], "any"falsefalsefalse54), "html"nulltrue);
  232.                     echo "</abbr>
  233.                     ";
  234.                 }
  235.                 // line 56
  236.                 echo "                ";
  237.             } else {
  238.                 // line 57
  239.                 echo "                    ";
  240.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "name", [], "any"falsefalsefalse57), "html"nulltrue);
  241.                 echo "
  242.                 ";
  243.             }
  244.             // line 59
  245.             echo "                line <a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-";
  246.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse59), "html"nulltrue);
  247.             echo "\">";
  248.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["dump"], "line", [], "any"falsefalsefalse59), "html"nulltrue);
  249.             echo "</a>:
  250.             </span>
  251.             <div class=\"sf-dump-compact hidden\" id=\"sf-trace-";
  252.             // line 62
  253.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse62), "html"nulltrue);
  254.             echo "\">
  255.                 <div class=\"trace\">
  256.                     ";
  257.             // line 64
  258.             echo ((twig_get_attribute($this->env$this->source$context["dump"], "fileExcerpt", [], "any"falsefalsefalse64)) ? (twig_get_attribute($this->env$this->source$context["dump"], "fileExcerpt", [], "any"falsefalsefalse64)) : ($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->fileExcerpt(twig_get_attribute($this->env$this->source$context["dump"], "file", [], "any"falsefalsefalse64), twig_get_attribute($this->env$this->source$context["dump"], "line", [], "any"falsefalsefalse64))));
  259.             echo "
  260.                 </div>
  261.             </div>
  262.             ";
  263.             // line 68
  264.             echo twig_get_attribute($this->env$this->source$context["dump"], "data", [], "any"falsefalsefalse68);
  265.             echo "
  266.         </div>
  267.     ";
  268.             $context['_iterated'] = true;
  269.             ++$context['loop']['index0'];
  270.             ++$context['loop']['index'];
  271.             $context['loop']['first'] = false;
  272.             if (isset($context['loop']['length'])) {
  273.                 --$context['loop']['revindex0'];
  274.                 --$context['loop']['revindex'];
  275.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  276.             }
  277.         }
  278.         if (!$context['_iterated']) {
  279.             // line 71
  280.             echo "        <div class=\"empty empty-panel\">
  281.             <p>No content was dumped.</p>
  282.         </div>
  283.     ";
  284.         }
  285.         $_parent $context['_parent'];
  286.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dump'], $context['_parent'], $context['loop']);
  287.         $context array_intersect_key($context$_parent) + $_parent;
  288.         
  289.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  290.         
  291.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  292.     }
  293.     public function getTemplateName()
  294.     {
  295.         return "@Debug/Profiler/dump.html.twig";
  296.     }
  297.     public function isTraitable()
  298.     {
  299.         return false;
  300.     }
  301.     public function getDebugInfo()
  302.     {
  303.         return array (  308 => 71,  292 => 68,  285 => 64,  280 => 62,  271 => 59,  265 => 57,  262 => 56,  254 => 54,  244 => 52,  241 => 51,  238 => 50,  236 => 49,  232 => 47,  214 => 46,  210 => 44,  200 => 43,  186 => 38,  181 => 37,  171 => 36,  158 => 32,  155 => 31,  152 => 30,  143 => 27,  138 => 25,  135 => 24,  129 => 22,  126 => 21,  118 => 19,  108 => 17,  105 => 16,  102 => 15,  100 => 14,  96 => 12,  91 => 11,  89 => 10,  86 => 9,  81 => 7,  76 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  304.     }
  305.     public function getSourceContext()
  306.     {
  307.         return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  308. {% block toolbar %}
  309.     {% if collector.dumpsCount %}
  310.         {% set icon %}
  311.             {{ source('@Debug/Profiler/icon.svg') }}
  312.             <span class=\"sf-toolbar-value\">{{ collector.dumpsCount }}</span>
  313.         {% endset %}
  314.         {% set text %}
  315.             {% for dump in collector.getDumps('html') %}
  316.                 <div class=\"sf-toolbar-info-piece\">
  317.                     <span>
  318.                     {% if dump.file %}
  319.                         {% set link = dump.file|file_link(dump.line) %}
  320.                         {% if link %}
  321.                             <a href=\"{{ link }}\" title=\"{{ dump.file }}\">{{ dump.name }}</a>
  322.                         {% else %}
  323.                             <abbr title=\"{{ dump.file }}\">{{ dump.name }}</abbr>
  324.                         {% endif %}
  325.                     {% else %}
  326.                         {{ dump.name }}
  327.                     {% endif %}
  328.                     </span>
  329.                     <span class=\"sf-toolbar-file-line\">line {{ dump.line }}</span>
  330.                     {{ dump.data|raw }}
  331.                 </div>
  332.             {% endfor %}
  333.         {% endset %}
  334.         {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': true }) }}
  335.     {% endif %}
  336. {% endblock %}
  337. {% block menu %}
  338.     <span class=\"label {{ collector.dumpsCount == 0 ? 'disabled' }}\">
  339.         <span class=\"icon\">{{ source('@Debug/Profiler/icon.svg') }}</span>
  340.         <strong>Debug</strong>
  341.     </span>
  342. {% endblock %}
  343. {% block panel %}
  344.     <h2>Dumped Contents</h2>
  345.     {% for dump in collector.getDumps('html') %}
  346.         <div class=\"sf-dump sf-reset\">
  347.             <span class=\"metadata\">In
  348.                 {% if dump.line %}
  349.                     {% set link = dump.file|file_link(dump.line) %}
  350.                     {% if link %}
  351.                         <a href=\"{{ link }}\" title=\"{{ dump.file }}\">{{ dump.name }}</a>
  352.                     {% else %}
  353.                         <abbr title=\"{{ dump.file }}\">{{ dump.name }}</abbr>
  354.                     {% endif %}
  355.                 {% else %}
  356.                     {{ dump.name }}
  357.                 {% endif %}
  358.                 line <a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-{{ loop.index0 }}\">{{ dump.line }}</a>:
  359.             </span>
  360.             <div class=\"sf-dump-compact hidden\" id=\"sf-trace-{{ loop.index0 }}\">
  361.                 <div class=\"trace\">
  362.                     {{ dump.fileExcerpt ? dump.fileExcerpt|raw : dump.file|file_excerpt(dump.line) }}
  363.                 </div>
  364.             </div>
  365.             {{ dump.data|raw }}
  366.         </div>
  367.     {% else %}
  368.         <div class=\"empty empty-panel\">
  369.             <p>No content was dumped.</p>
  370.         </div>
  371.     {% endfor %}
  372. {% endblock %}
  373. ""@Debug/Profiler/dump.html.twig""/home/bestofi/bestof/vendor/symfony/debug-bundle/Resources/views/Profiler/dump.html.twig");
  374.     }
  375. }