^ null
^ null
^ null
^ null
Symfony Profiler

var/cache/dev/twig/3b/3be37a577b58b920c4d9b5a3c6872894ebf96d1e9841f3a1c30e0e9a7a0b58b5.php line 52

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