var/cache/dev/twig/90/9061ac7abf906e7b5008b5583a3b71fa.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/exception.html.twig */
  14. class __TwigTemplate_59b1738773d1013ae1b567f4d946f78e 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.             'head' => [$this'block_head'],
  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/exception.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/exception.html.twig"));
  40.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@WebProfiler/Collector/exception.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_head($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""head"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  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); })()), "hasexception", [], "any"falsefalsefalse4)) {
  58.             // line 5
  59.             echo "        <style>
  60.             ";
  61.             // line 6
  62.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("web_profiler.controller.exception_panel::stylesheet", ["token" => (isset($context["token"]) || array_key_exists("token"$context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.'6$this->source); })())]));
  63.             echo "
  64.             ";
  65.             // line 7
  66.             echo twig_include($this->env$context"@WebProfiler/Collector/exception.css.twig");
  67.             echo "
  68.         </style>
  69.     ";
  70.         }
  71.         // line 10
  72.         echo "    ";
  73.         $this->displayParentBlock("head"$context$blocks);
  74.         echo "
  75. ";
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.         
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80.     }
  81.     // line 13
  82.     public function block_menu($context, array $blocks = [])
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  89.         // line 14
  90.         echo "    <span class=\"label ";
  91.         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.'14$this->source); })()), "hasexception", [], "any"falsefalsefalse14)) ? ("label-status-error") : ("disabled"));
  92.         echo "\">
  93.         <span class=\"icon\">";
  94.         // line 15
  95.         echo twig_source($this->env"@WebProfiler/Icon/exception.svg");
  96.         echo "</span>
  97.         <strong>Exception</strong>
  98.         ";
  99.         // line 17
  100.         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.'17$this->source); })()), "hasexception", [], "any"falsefalsefalse17)) {
  101.             // line 18
  102.             echo "            <span class=\"count\">
  103.                 <span>1</span>
  104.             </span>
  105.         ";
  106.         }
  107.         // line 22
  108.         echo "    </span>
  109. ";
  110.         
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112.         
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  114.     }
  115.     // line 25
  116.     public function block_panel($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  123.         // line 26
  124.         echo "    ";
  125.         // line 28
  126.         echo "    <style>
  127.         .tab-navigation li { background: none; border: 0; font-size: 14px; }
  128.         .tab-navigation li.active { border-radius: 6px; }
  129.         .tab-navigation li.active .badge { background-color: var(--selected-badge-background); color: var(--selected-badge-color); }
  130.     </style>
  131.     <h2>Exceptions</h2>
  132.     ";
  133.         // line 36
  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.'36$this->source); })()), "hasexception", [], "any"falsefalsefalse36)) {
  135.             // line 37
  136.             echo "        <div class=\"empty empty-panel\">
  137.             <p>No exception was thrown and caught during the request.</p>
  138.         </div>
  139.     ";
  140.         } else {
  141.             // line 41
  142.             echo "        <div class=\"sf-reset\">
  143.             ";
  144.             // line 42
  145.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("web_profiler.controller.exception_panel::body", ["token" => (isset($context["token"]) || array_key_exists("token"$context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.'42$this->source); })())]));
  146.             echo "
  147.         </div>
  148.     ";
  149.         }
  150.         
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  152.         
  153.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  154.     }
  155.     public function getTemplateName()
  156.     {
  157.         return "@WebProfiler/Collector/exception.html.twig";
  158.     }
  159.     public function isTraitable()
  160.     {
  161.         return false;
  162.     }
  163.     public function getDebugInfo()
  164.     {
  165.         return array (  171 => 42,  168 => 41,  162 => 37,  160 => 36,  150 => 28,  148 => 26,  138 => 25,  127 => 22,  121 => 18,  119 => 17,  114 => 15,  109 => 14,  99 => 13,  86 => 10,  80 => 7,  76 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  166.     }
  167.     public function getSourceContext()
  168.     {
  169.         return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  170. {% block head %}
  171.     {% if collector.hasexception %}
  172.         <style>
  173.             {{ render(controller('web_profiler.controller.exception_panel::stylesheet', { token: token })) }}
  174.             {{ include('@WebProfiler/Collector/exception.css.twig') }}
  175.         </style>
  176.     {% endif %}
  177.     {{ parent() }}
  178. {% endblock %}
  179. {% block menu %}
  180.     <span class=\"label {{ collector.hasexception ? 'label-status-error' : 'disabled' }}\">
  181.         <span class=\"icon\">{{ source('@WebProfiler/Icon/exception.svg') }}</span>
  182.         <strong>Exception</strong>
  183.         {% if collector.hasexception %}
  184.             <span class=\"count\">
  185.                 <span>1</span>
  186.             </span>
  187.         {% endif %}
  188.     </span>
  189. {% endblock %}
  190. {% block panel %}
  191.     {# these styles are needed to override some styles from Exception page, which wasn't
  192.        updated yet to the new style of the Symfony Profiler #}
  193.     <style>
  194.         .tab-navigation li { background: none; border: 0; font-size: 14px; }
  195.         .tab-navigation li.active { border-radius: 6px; }
  196.         .tab-navigation li.active .badge { background-color: var(--selected-badge-background); color: var(--selected-badge-color); }
  197.     </style>
  198.     <h2>Exceptions</h2>
  199.     {% if not collector.hasexception %}
  200.         <div class=\"empty empty-panel\">
  201.             <p>No exception was thrown and caught during the request.</p>
  202.         </div>
  203.     {% else %}
  204.         <div class=\"sf-reset\">
  205.             {{ render(controller('web_profiler.controller.exception_panel::body', { token: token })) }}
  206.         </div>
  207.     {% endif %}
  208. {% endblock %}
  209. ""@WebProfiler/Collector/exception.html.twig""/home/bestofi/bestof/vendor/symfony/web-profiler-bundle/Resources/views/Collector/exception.html.twig");
  210.     }
  211. }