var/cache/dev/twig/9d/9d32b4d5fcfe40139d5a7c292ed0961f.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. /* @WebProfiler/Collector/validator.html.twig */
  14. class __TwigTemplate_0ada9bed9a5fb05d5e065bd0ad9416b2 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""@WebProfiler/Collector/validator.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""@WebProfiler/Collector/validator.html.twig"));
  40.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@WebProfiler/Collector/validator.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); })()), "violationsCount", [], "any"falsefalsefalse4) > 0) || twig_length_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.'4$this->source); })()), "calls", [], "any"falsefalsefalse4)))) {
  58.             // line 5
  59.             echo "        ";
  60.             $context["status_color"] = ((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.'5$this->source); })()), "violationsCount", [], "any"falsefalsefalse5)) ? ("red") : (""));
  61.             // line 6
  62.             echo "        ";
  63.             ob_start();
  64.             // line 7
  65.             echo "            ";
  66.             echo twig_source($this->env"@WebProfiler/Icon/validator.svg");
  67.             echo "
  68.             <span class=\"sf-toolbar-value\">
  69.                 ";
  70.             // line 9
  71.             echo twig_escape_filter($this->env, ((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.'9$this->source); })()), "violationsCount", [], "any"falsefalsefalse9)) ? (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.'9$this->source); })()), "violationsCount", [], "any"falsefalsefalse9)) : (twig_length_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.'9$this->source); })()), "calls", [], "any"falsefalsefalse9)))), "html"nulltrue);
  72.             echo "
  73.             </span>
  74.         ";
  75.             $context["icon"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  76.             // line 12
  77.             echo "
  78.         ";
  79.             // line 13
  80.             ob_start();
  81.             // line 14
  82.             echo "            <div class=\"sf-toolbar-info-piece\">
  83.                 <b>Validator calls</b>
  84.                 <span class=\"sf-toolbar-status\">";
  85.             // line 16
  86.             echo twig_escape_filter($this->envtwig_length_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.'16$this->source); })()), "calls", [], "any"falsefalsefalse16)), "html"nulltrue);
  87.             echo "</span>
  88.             </div>
  89.             <div class=\"sf-toolbar-info-piece\">
  90.                 <b>Number of violations</b>
  91.                 <span class=\"sf-toolbar-status";
  92.             // line 20
  93.             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.'20$this->source); })()), "violationsCount", [], "any"falsefalsefalse20) > 0)) ? (" sf-toolbar-status-red") : (""));
  94.             echo "\">";
  95.             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.'20$this->source); })()), "violationsCount", [], "any"falsefalsefalse20), "html"nulltrue);
  96.             echo "</span>
  97.             </div>
  98.         ";
  99.             $context["text"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  100.             // line 23
  101.             echo "
  102.         ";
  103.             // line 24
  104.             echo twig_include($this->env$context"@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url"$context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.'24$this->source); })()), "status" => (isset($context["status_color"]) || array_key_exists("status_color"$context) ? $context["status_color"] : (function () { throw new RuntimeError('Variable "status_color" does not exist.'24$this->source); })())]);
  105.             echo "
  106.     ";
  107.         }
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.     }
  113.     // line 28
  114.     public function block_menu($context, array $blocks = [])
  115.     {
  116.         $macros $this->macros;
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  121.         // line 29
  122.         echo "    <span class=\"label";
  123.         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.'29$this->source); })()), "violationsCount", [], "any"falsefalsefalse29)) ? (" label-status-error") : (""));
  124.         echo " ";
  125.         echo ((twig_test_empty(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.'29$this->source); })()), "calls", [], "any"falsefalsefalse29))) ? ("disabled") : (""));
  126.         echo "\">
  127.         <span class=\"icon\">";
  128.         // line 30
  129.         echo twig_source($this->env"@WebProfiler/Icon/validator.svg");
  130.         echo "</span>
  131.         <strong>Validator</strong>
  132.         ";
  133.         // line 32
  134.         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.'32$this->source); })()), "violationsCount", [], "any"falsefalsefalse32) > 0)) {
  135.             // line 33
  136.             echo "            <span class=\"count\">
  137.                 <span>";
  138.             // line 34
  139.             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.'34$this->source); })()), "violationsCount", [], "any"falsefalsefalse34), "html"nulltrue);
  140.             echo "</span>
  141.             </span>
  142.         ";
  143.         }
  144.         // line 37
  145.         echo "    </span>
  146. ";
  147.         
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  149.         
  150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  151.     }
  152.     // line 40
  153.     public function block_panel($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""panel"));
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  160.         // line 41
  161.         echo "    <h2>Validator calls</h2>
  162.     ";
  163.         // line 43
  164.         $context['_parent'] = $context;
  165.         $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.'43$this->source); })()), "calls", [], "any"falsefalsefalse43));
  166.         $context['_iterated'] = false;
  167.         $context['loop'] = [
  168.           'parent' => $context['_parent'],
  169.           'index0' => 0,
  170.           'index'  => 1,
  171.           'first'  => true,
  172.         ];
  173.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  174.             $length count($context['_seq']);
  175.             $context['loop']['revindex0'] = $length 1;
  176.             $context['loop']['revindex'] = $length;
  177.             $context['loop']['length'] = $length;
  178.             $context['loop']['last'] = === $length;
  179.         }
  180.         foreach ($context['_seq'] as $context["_key"] => $context["call"]) {
  181.             // line 44
  182.             echo "        <div class=\"sf-validator sf-reset\">
  183.             <span class=\"metadata\">In
  184.                 ";
  185.             // line 46
  186.             $context["caller"] = twig_get_attribute($this->env$this->source$context["call"], "caller", [], "any"falsefalsefalse46);
  187.             // line 47
  188.             echo "                ";
  189.             if (twig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'47$this->source); })()), "line", [], "any"falsefalsefalse47)) {
  190.                 // line 48
  191.                 echo "                    ";
  192.                 $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(twig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'48$this->source); })()), "file", [], "any"falsefalsefalse48), twig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'48$this->source); })()), "line", [], "any"falsefalsefalse48));
  193.                 // line 49
  194.                 echo "                    ";
  195.                 if ((isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'49$this->source); })())) {
  196.                     // line 50
  197.                     echo "                        <a href=\"";
  198.                     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.'50$this->source); })()), "html"nulltrue);
  199.                     echo "\" title=\"";
  200.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'50$this->source); })()), "file", [], "any"falsefalsefalse50), "html"nulltrue);
  201.                     echo "\">";
  202.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'50$this->source); })()), "name", [], "any"falsefalsefalse50), "html"nulltrue);
  203.                     echo "</a>
  204.                     ";
  205.                 } else {
  206.                     // line 52
  207.                     echo "                        <abbr title=\"";
  208.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'52$this->source); })()), "file", [], "any"falsefalsefalse52), "html"nulltrue);
  209.                     echo "\">";
  210.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'52$this->source); })()), "name", [], "any"falsefalsefalse52), "html"nulltrue);
  211.                     echo "</abbr>
  212.                     ";
  213.                 }
  214.                 // line 54
  215.                 echo "                ";
  216.             } else {
  217.                 // line 55
  218.                 echo "                    ";
  219.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'55$this->source); })()), "name", [], "any"falsefalsefalse55), "html"nulltrue);
  220.                 echo "
  221.                 ";
  222.             }
  223.             // line 57
  224.             echo "                line <a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-";
  225.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse57), "html"nulltrue);
  226.             echo "\">";
  227.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'57$this->source); })()), "line", [], "any"falsefalsefalse57), "html"nulltrue);
  228.             echo "</a> (<a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-context-";
  229.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse57), "html"nulltrue);
  230.             echo "\">context</a>):
  231.             </span>
  232.             <div class=\"sf-validator-compact hidden\" id=\"sf-trace-";
  233.             // line 60
  234.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse60), "html"nulltrue);
  235.             echo "\">
  236.                 <div class=\"trace\">
  237.                     ";
  238.             // line 62
  239.             echo twig_replace_filter($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->fileExcerpt(twig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'62$this->source); })()), "file", [], "any"falsefalsefalse62), twig_get_attribute($this->env$this->source, (isset($context["caller"]) || array_key_exists("caller"$context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.'62$this->source); })()), "line", [], "any"falsefalsefalse62)), ["#DD0000" => "var(--highlight-string)""#007700" => "var(--highlight-keyword)""#0000BB" => "var(--highlight-default)""#FF8000" => "var(--highlight-comment)"]);
  240.             // line 67
  241.             echo "
  242.                 </div>
  243.             </div>
  244.             <div class=\"sf-validator-compact hidden sf-validator-context\" id=\"sf-context-";
  245.             // line 71
  246.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse71), "html"nulltrue);
  247.             echo "\">
  248.                 ";
  249.             // line 72
  250.             echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->source$context["call"], "context", [], "any"falsefalsefalse72), 1);
  251.             echo "
  252.             </div>
  253.             ";
  254.             // line 75
  255.             if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["call"], "violations", [], "any"falsefalsefalse75))) {
  256.                 // line 76
  257.                 echo "                <table>
  258.                     <thead>
  259.                         <tr>
  260.                             <th>Path</th>
  261.                             <th>Message</th>
  262.                             <th>Invalid value</th>
  263.                             <th>Violation</th>
  264.                         </tr>
  265.                     </thead>
  266.                     ";
  267.                 // line 85
  268.                 $context['_parent'] = $context;
  269.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["call"], "violations", [], "any"falsefalsefalse85));
  270.                 foreach ($context['_seq'] as $context["_key"] => $context["violation"]) {
  271.                     // line 86
  272.                     echo "                        <tr>
  273.                             <td>";
  274.                     // line 87
  275.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["violation"], "propertyPath", [], "any"falsefalsefalse87), "html"nulltrue);
  276.                     echo "</td>
  277.                             <td>";
  278.                     // line 88
  279.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["violation"], "message", [], "any"falsefalsefalse88), "html"nulltrue);
  280.                     echo "</td>
  281.                             <td>";
  282.                     // line 89
  283.                     echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->source$context["violation"], "seek", [=> "invalidValue"], "method"falsefalsefalse89));
  284.                     echo "</td>
  285.                             <td>";
  286.                     // line 90
  287.                     echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env$context["violation"]);
  288.                     echo "</td>
  289.                         </tr>
  290.                     ";
  291.                 }
  292.                 $_parent $context['_parent'];
  293.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['violation'], $context['_parent'], $context['loop']);
  294.                 $context array_intersect_key($context$_parent) + $_parent;
  295.                 // line 93
  296.                 echo "                </table>
  297.             ";
  298.             } else {
  299.                 // line 95
  300.                 echo "                No violations
  301.             ";
  302.             }
  303.             // line 97
  304.             echo "        </div>
  305.     ";
  306.             $context['_iterated'] = true;
  307.             ++$context['loop']['index0'];
  308.             ++$context['loop']['index'];
  309.             $context['loop']['first'] = false;
  310.             if (isset($context['loop']['length'])) {
  311.                 --$context['loop']['revindex0'];
  312.                 --$context['loop']['revindex'];
  313.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  314.             }
  315.         }
  316.         if (!$context['_iterated']) {
  317.             // line 99
  318.             echo "        <div class=\"empty empty-panel\">
  319.             <p>No calls to the validator were collected during this request.</p>
  320.         </div>
  321.     ";
  322.         }
  323.         $_parent $context['_parent'];
  324.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['call'], $context['_parent'], $context['loop']);
  325.         $context array_intersect_key($context$_parent) + $_parent;
  326.         
  327.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  328.         
  329.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  330.     }
  331.     public function getTemplateName()
  332.     {
  333.         return "@WebProfiler/Collector/validator.html.twig";
  334.     }
  335.     public function isTraitable()
  336.     {
  337.         return false;
  338.     }
  339.     public function getDebugInfo()
  340.     {
  341.         return array (  346 => 99,  332 => 97,  328 => 95,  324 => 93,  315 => 90,  311 => 89,  307 => 88,  303 => 87,  300 => 86,  296 => 85,  285 => 76,  283 => 75,  277 => 72,  273 => 71,  267 => 67,  265 => 62,  260 => 60,  249 => 57,  243 => 55,  240 => 54,  232 => 52,  222 => 50,  219 => 49,  216 => 48,  213 => 47,  211 => 46,  207 => 44,  189 => 43,  185 => 41,  175 => 40,  164 => 37,  158 => 34,  155 => 33,  153 => 32,  148 => 30,  141 => 29,  131 => 28,  118 => 24,  115 => 23,  107 => 20,  100 => 16,  96 => 14,  94 => 13,  91 => 12,  85 => 9,  79 => 7,  76 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  342.     }
  343.     public function getSourceContext()
  344.     {
  345.         return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  346. {% block toolbar %}
  347.     {% if collector.violationsCount > 0 or collector.calls|length %}
  348.         {% set status_color = collector.violationsCount ? 'red' %}
  349.         {% set icon %}
  350.             {{ source('@WebProfiler/Icon/validator.svg') }}
  351.             <span class=\"sf-toolbar-value\">
  352.                 {{ collector.violationsCount ?: collector.calls|length }}
  353.             </span>
  354.         {% endset %}
  355.         {% set text %}
  356.             <div class=\"sf-toolbar-info-piece\">
  357.                 <b>Validator calls</b>
  358.                 <span class=\"sf-toolbar-status\">{{ collector.calls|length }}</span>
  359.             </div>
  360.             <div class=\"sf-toolbar-info-piece\">
  361.                 <b>Number of violations</b>
  362.                 <span class=\"sf-toolbar-status {{- collector.violationsCount > 0 ? ' sf-toolbar-status-red' }}\">{{ collector.violationsCount }}</span>
  363.             </div>
  364.         {% endset %}
  365.         {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
  366.     {% endif %}
  367. {% endblock %}
  368. {% block menu %}
  369.     <span class=\"label {{- collector.violationsCount ? ' label-status-error' }} {{ collector.calls is empty ? 'disabled' }}\">
  370.         <span class=\"icon\">{{ source('@WebProfiler/Icon/validator.svg') }}</span>
  371.         <strong>Validator</strong>
  372.         {% if collector.violationsCount > 0 %}
  373.             <span class=\"count\">
  374.                 <span>{{ collector.violationsCount }}</span>
  375.             </span>
  376.         {% endif %}
  377.     </span>
  378. {% endblock %}
  379. {% block panel %}
  380.     <h2>Validator calls</h2>
  381.     {% for call in collector.calls %}
  382.         <div class=\"sf-validator sf-reset\">
  383.             <span class=\"metadata\">In
  384.                 {% set caller = call.caller %}
  385.                 {% if caller.line %}
  386.                     {% set link = caller.file|file_link(caller.line) %}
  387.                     {% if link %}
  388.                         <a href=\"{{ link }}\" title=\"{{ caller.file }}\">{{ caller.name }}</a>
  389.                     {% else %}
  390.                         <abbr title=\"{{ caller.file }}\">{{ caller.name }}</abbr>
  391.                     {% endif %}
  392.                 {% else %}
  393.                     {{ caller.name }}
  394.                 {% endif %}
  395.                 line <a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-{{ loop.index0 }}\">{{ caller.line }}</a> (<a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-context-{{ loop.index0 }}\">context</a>):
  396.             </span>
  397.             <div class=\"sf-validator-compact hidden\" id=\"sf-trace-{{ loop.index0 }}\">
  398.                 <div class=\"trace\">
  399.                     {{ caller.file|file_excerpt(caller.line)|replace({
  400.                         '#DD0000': 'var(--highlight-string)',
  401.                         '#007700': 'var(--highlight-keyword)',
  402.                         '#0000BB': 'var(--highlight-default)',
  403.                         '#FF8000': 'var(--highlight-comment)'
  404.                     })|raw }}
  405.                 </div>
  406.             </div>
  407.             <div class=\"sf-validator-compact hidden sf-validator-context\" id=\"sf-context-{{ loop.index0 }}\">
  408.                 {{ profiler_dump(call.context, maxDepth=1) }}
  409.             </div>
  410.             {% if call.violations|length %}
  411.                 <table>
  412.                     <thead>
  413.                         <tr>
  414.                             <th>Path</th>
  415.                             <th>Message</th>
  416.                             <th>Invalid value</th>
  417.                             <th>Violation</th>
  418.                         </tr>
  419.                     </thead>
  420.                     {% for violation in call.violations %}
  421.                         <tr>
  422.                             <td>{{ violation.propertyPath }}</td>
  423.                             <td>{{ violation.message }}</td>
  424.                             <td>{{ profiler_dump(violation.seek('invalidValue')) }}</td>
  425.                             <td>{{ profiler_dump(violation) }}</td>
  426.                         </tr>
  427.                     {% endfor %}
  428.                 </table>
  429.             {% else %}
  430.                 No violations
  431.             {% endif %}
  432.         </div>
  433.     {% else %}
  434.         <div class=\"empty empty-panel\">
  435.             <p>No calls to the validator were collected during this request.</p>
  436.         </div>
  437.     {% endfor %}
  438. {% endblock %}
  439. ""@WebProfiler/Collector/validator.html.twig""/home/bestofi/bestof/vendor/symfony/web-profiler-bundle/Resources/views/Collector/validator.html.twig");
  440.     }
  441. }