var/cache/dev/twig/85/85afd671e23dee80937ca4da650b091d.php line 54

  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/Profiler/results.html.twig */
  14. class __TwigTemplate_5e8b215cd382887870beaf2176e7eb10 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.             'summary' => [$this'block_summary'],
  24.             'sidebar_search_css_class' => [$this'block_sidebar_search_css_class'],
  25.             'sidebar_shortcuts_links' => [$this'block_sidebar_shortcuts_links'],
  26.             'panel' => [$this'block_panel'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "@WebProfiler/Profiler/layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Profiler/results.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Profiler/results.html.twig"));
  41.         // line 9
  42.         $macros["helper"] = $this->macros["helper"] = $this;
  43.         // line 1
  44.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@WebProfiler/Profiler/results.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 11
  52.     public function block_summary($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""summary"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""summary"));
  59.         // line 12
  60.         echo "    <div class=\"status\">
  61.         <h2>Profile Search</h2>
  62.     </div>
  63. ";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.     }
  69.     // line 17
  70.     public function block_sidebar_search_css_class($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar_search_css_class"));
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar_search_css_class"));
  77.         
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.     }
  82.     // line 18
  83.     public function block_sidebar_shortcuts_links($context, array $blocks = [])
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar_shortcuts_links"));
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar_shortcuts_links"));
  90.         
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  92.         
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94.     }
  95.     // line 20
  96.     public function block_panel($context, array $blocks = [])
  97.     {
  98.         $macros $this->macros;
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  103.         // line 21
  104.         echo "    <h2>";
  105.         (((isset($context["tokens"]) || array_key_exists("tokens"$context) ? $context["tokens"] : (function () { throw new RuntimeError('Variable "tokens" does not exist.'21$this->source); })())) ? (print (twig_escape_filter($this->envtwig_length_filter($this->env, (isset($context["tokens"]) || array_key_exists("tokens"$context) ? $context["tokens"] : (function () { throw new RuntimeError('Variable "tokens" does not exist.'21$this->source); })())), "html"nulltrue))) : (print ("No")));
  106.         echo " results found</h2>
  107.     ";
  108.         // line 23
  109.         if ((isset($context["tokens"]) || array_key_exists("tokens"$context) ? $context["tokens"] : (function () { throw new RuntimeError('Variable "tokens" does not exist.'23$this->source); })())) {
  110.             // line 24
  111.             echo "        <table id=\"search-results\">
  112.             <thead>
  113.                 <tr>
  114.                     <th scope=\"col\" class=\"text-center\">Status</th>
  115.                     <th scope=\"col\">IP</th>
  116.                     <th scope=\"col\">Method</th>
  117.                     <th scope=\"col\">URL</th>
  118.                     <th scope=\"col\">Time</th>
  119.                     <th scope=\"col\">Token</th>
  120.                 </tr>
  121.             </thead>
  122.             <tbody>
  123.                 ";
  124.             // line 36
  125.             $context['_parent'] = $context;
  126.             $context['_seq'] = twig_ensure_traversable((isset($context["tokens"]) || array_key_exists("tokens"$context) ? $context["tokens"] : (function () { throw new RuntimeError('Variable "tokens" does not exist.'36$this->source); })()));
  127.             foreach ($context['_seq'] as $context["_key"] => $context["result"]) {
  128.                 // line 37
  129.                 echo "                    ";
  130.                 $context["css_class"] = (((((twig_get_attribute($this->env$this->source$context["result"], "status_code", [], "any"truetruefalse37)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["result"], "status_code", [], "any"falsefalsefalse37), 0)) : (0)) > 399)) ? ("status-error") : ((((((twig_get_attribute($this->env$this->source$context["result"], "status_code", [], "any"truetruefalse37)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["result"], "status_code", [], "any"falsefalsefalse37), 0)) : (0)) > 299)) ? ("status-warning") : ("status-success"))));
  131.                 // line 38
  132.                 echo "
  133.                     <tr>
  134.                         <td class=\"text-center\">
  135.                             <span class=\"label ";
  136.                 // line 41
  137.                 echo twig_escape_filter($this->env, (isset($context["css_class"]) || array_key_exists("css_class"$context) ? $context["css_class"] : (function () { throw new RuntimeError('Variable "css_class" does not exist.'41$this->source); })()), "html"nulltrue);
  138.                 echo "\">";
  139.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["result"], "status_code", [], "any"truetruefalse41)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["result"], "status_code", [], "any"falsefalsefalse41), "n/a")) : ("n/a")), "html"nulltrue);
  140.                 echo "</span>
  141.                         </td>
  142.                         <td>
  143.                             <span class=\"nowrap\">";
  144.                 // line 44
  145.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "ip", [], "any"falsefalsefalse44), "html"nulltrue);
  146.                 echo " ";
  147.                 echo twig_call_macro($macros["helper"], "macro_profile_search_filter", [(isset($context["request"]) || array_key_exists("request"$context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.'44$this->source); })()), $context["result"], "ip"], 44$context$this->getSourceContext());
  148.                 echo "</span>
  149.                         </td>
  150.                         <td>
  151.                             <span class=\"nowrap\">";
  152.                 // line 47
  153.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "method", [], "any"falsefalsefalse47), "html"nulltrue);
  154.                 echo " ";
  155.                 echo twig_call_macro($macros["helper"], "macro_profile_search_filter", [(isset($context["request"]) || array_key_exists("request"$context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.'47$this->source); })()), $context["result"], "method"], 47$context$this->getSourceContext());
  156.                 echo "</span>
  157.                         </td>
  158.                         <td class=\"break-long-words\">
  159.                             ";
  160.                 // line 50
  161.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "url", [], "any"falsefalsefalse50), "html"nulltrue);
  162.                 echo "
  163.                             ";
  164.                 // line 51
  165.                 echo twig_call_macro($macros["helper"], "macro_profile_search_filter", [(isset($context["request"]) || array_key_exists("request"$context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.'51$this->source); })()), $context["result"], "url"], 51$context$this->getSourceContext());
  166.                 echo "
  167.                         </td>
  168.                         <td class=\"text-small\">
  169.                             <span class=\"nowrap\">";
  170.                 // line 54
  171.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "time", [], "any"falsefalsefalse54), "d-M-Y"), "html"nulltrue);
  172.                 echo "</span>
  173.                             <span class=\"nowrap newline\">";
  174.                 // line 55
  175.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "time", [], "any"falsefalsefalse55), "H:i:s"), "html"nulltrue);
  176.                 echo "</span>
  177.                         </td>
  178.                         <td class=\"nowrap\"><a href=\"";
  179.                 // line 57
  180.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", ["token" => twig_get_attribute($this->env$this->source$context["result"], "token", [], "any"falsefalsefalse57)]), "html"nulltrue);
  181.                 echo "\">";
  182.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "token", [], "any"falsefalsefalse57), "html"nulltrue);
  183.                 echo "</a></td>
  184.                     </tr>
  185.                 ";
  186.             }
  187.             $_parent $context['_parent'];
  188.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['result'], $context['_parent'], $context['loop']);
  189.             $context array_intersect_key($context$_parent) + $_parent;
  190.             // line 60
  191.             echo "            </tbody>
  192.         </table>
  193.     ";
  194.         } else {
  195.             // line 63
  196.             echo "        <div class=\"empty empty-panel\">
  197.             <p>The query returned no result.</p>
  198.         </div>
  199.     ";
  200.         }
  201.         // line 67
  202.         echo "
  203. ";
  204.         
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206.         
  207.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  208.     }
  209.     // line 3
  210.     public function macro_profile_search_filter($__request__ null$__result__ null$__property__ null, ...$__varargs__)
  211.     {
  212.         $macros $this->macros;
  213.         $context $this->env->mergeGlobals([
  214.             "request" => $__request__,
  215.             "result" => $__result__,
  216.             "property" => $__property__,
  217.             "varargs" => $__varargs__,
  218.         ]);
  219.         $blocks = [];
  220.         ob_start();
  221.         try {
  222.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  223.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""profile_search_filter"));
  224.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  225.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""profile_search_filter"));
  226.             // line 4
  227.             if (twig_get_attribute($this->env$this->source, (isset($context["request"]) || array_key_exists("request"$context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.'4$this->source); })()), "hasSession", [], "any"falsefalsefalse4)) {
  228.                 // line 5
  229.                 echo "<a href=\"";
  230.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler_search_results"twig_array_merge(twig_array_merge(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["request"]) || array_key_exists("request"$context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.'5$this->source); })()), "query", [], "any"falsefalsefalse5), "all", [], "any"falsefalsefalse5), ["token" => twig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'5$this->source); })()), "token", [], "any"falsefalsefalse5)]), [(isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'5$this->source); })()) => twig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'5$this->source); })()), (isset($context["property"]) || array_key_exists("property"$context) ? $context["property"] : (function () { throw new RuntimeError('Variable "property" does not exist.'5$this->source); })()), [], "array"falsefalsefalse5)])), "html"nulltrue);
  231.                 echo "\" title=\"Search\"><span title=\"Search\" class=\"sf-icon sf-search\">";
  232.                 echo twig_source($this->env"@WebProfiler/Icon/search.svg");
  233.                 echo "</span></a>";
  234.             }
  235.             
  236.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  237.             
  238.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  239.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  240.         } finally {
  241.             ob_end_clean();
  242.         }
  243.     }
  244.     public function getTemplateName()
  245.     {
  246.         return "@WebProfiler/Profiler/results.html.twig";
  247.     }
  248.     public function isTraitable()
  249.     {
  250.         return false;
  251.     }
  252.     public function getDebugInfo()
  253.     {
  254.         return array (  266 => 5,  264 => 4,  243 => 3,  232 => 67,  226 => 63,  221 => 60,  210 => 57,  205 => 55,  201 => 54,  195 => 51,  191 => 50,  183 => 47,  175 => 44,  167 => 41,  162 => 38,  159 => 37,  155 => 36,  141 => 24,  139 => 23,  133 => 21,  123 => 20,  105 => 18,  87 => 17,  74 => 12,  64 => 11,  53 => 1,  51 => 9,  38 => 1,);
  255.     }
  256.     public function getSourceContext()
  257.     {
  258.         return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  259. {% macro profile_search_filter(request, result, property) %}
  260.     {%- if request.hasSession -%}
  261.         <a href=\"{{ path('_profiler_search_results', request.query.all|merge({token: result.token})|merge({ (property): result[property] })) }}\" title=\"Search\"><span title=\"Search\" class=\"sf-icon sf-search\">{{ source('@WebProfiler/Icon/search.svg') }}</span></a>
  262.     {%- endif -%}
  263. {% endmacro %}
  264. {% import _self as helper %}
  265. {% block summary %}
  266.     <div class=\"status\">
  267.         <h2>Profile Search</h2>
  268.     </div>
  269. {% endblock %}
  270. {% block sidebar_search_css_class %}{% endblock %}
  271. {% block sidebar_shortcuts_links %}{% endblock %}
  272. {% block panel %}
  273.     <h2>{{ tokens ? tokens|length : 'No' }} results found</h2>
  274.     {% if tokens %}
  275.         <table id=\"search-results\">
  276.             <thead>
  277.                 <tr>
  278.                     <th scope=\"col\" class=\"text-center\">Status</th>
  279.                     <th scope=\"col\">IP</th>
  280.                     <th scope=\"col\">Method</th>
  281.                     <th scope=\"col\">URL</th>
  282.                     <th scope=\"col\">Time</th>
  283.                     <th scope=\"col\">Token</th>
  284.                 </tr>
  285.             </thead>
  286.             <tbody>
  287.                 {% for result in tokens %}
  288.                     {% set css_class = result.status_code|default(0) > 399 ? 'status-error' : result.status_code|default(0) > 299 ? 'status-warning' : 'status-success' %}
  289.                     <tr>
  290.                         <td class=\"text-center\">
  291.                             <span class=\"label {{ css_class }}\">{{ result.status_code|default('n/a') }}</span>
  292.                         </td>
  293.                         <td>
  294.                             <span class=\"nowrap\">{{ result.ip }} {{ helper.profile_search_filter(request, result, 'ip') }}</span>
  295.                         </td>
  296.                         <td>
  297.                             <span class=\"nowrap\">{{ result.method }} {{ helper.profile_search_filter(request, result, 'method') }}</span>
  298.                         </td>
  299.                         <td class=\"break-long-words\">
  300.                             {{ result.url }}
  301.                             {{ helper.profile_search_filter(request, result, 'url') }}
  302.                         </td>
  303.                         <td class=\"text-small\">
  304.                             <span class=\"nowrap\">{{ result.time|date('d-M-Y') }}</span>
  305.                             <span class=\"nowrap newline\">{{ result.time|date('H:i:s') }}</span>
  306.                         </td>
  307.                         <td class=\"nowrap\"><a href=\"{{ path('_profiler', { token: result.token }) }}\">{{ result.token }}</a></td>
  308.                     </tr>
  309.                 {% endfor %}
  310.             </tbody>
  311.         </table>
  312.     {% else %}
  313.         <div class=\"empty empty-panel\">
  314.             <p>The query returned no result.</p>
  315.         </div>
  316.     {% endif %}
  317. {% endblock %}
  318. ""@WebProfiler/Profiler/results.html.twig""/home/bestofi/bestof/vendor/symfony/web-profiler-bundle/Resources/views/Profiler/results.html.twig");
  319.     }
  320. }