var_dev/cache/dev/twig/e2/e22f2676e46ce6007ed93dbfd3475ef8.php line 58

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @WebProfiler/Collector/logger.html.twig */
  16. class __TwigTemplate_31bb2c157fe51fd18b67d397df48001a extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'toolbar' => [$this, 'block_toolbar'],
  29. 'menu' => [$this, 'block_menu'],
  30. 'panel' => [$this, 'block_panel'],
  31. ];
  32. }
  33. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34. {
  35. // line 1
  36. return "@WebProfiler/Profiler/layout.html.twig";
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/logger.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/logger.html.twig"));
  45. // line 3
  46. $macros["helper"] = $this->macros["helper"] = $this;
  47. // line 1
  48. $this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/logger.html.twig", 1);
  49. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52. }
  53. // line 5
  54. /**
  55. * @return iterable<null|scalar|\Stringable>
  56. */
  57. public function block_toolbar(array $context, array $blocks = []): iterable
  58. {
  59. $macros = $this->macros;
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
  64. // line 6
  65. yield " ";
  66. if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "counterrors", [], "any", false, false, false, 6) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "countdeprecations", [], "any", false, false, false, 6)) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "countwarnings", [], "any", false, false, false, 6))) {
  67. // line 7
  68. yield " ";
  69. $context["icon"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  70. // line 8
  71. yield " ";
  72. $context["status_color"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 8, $this->source); })()), "counterrors", [], "any", false, false, false, 8)) ? ("red") : (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 8, $this->source); })()), "countwarnings", [], "any", false, false, false, 8)) ? ("yellow") : ("none"))));
  73. // line 9
  74. yield " ";
  75. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/logger.svg");
  76. yield "
  77. <span class=\"sf-toolbar-value\">";
  78. // line 10
  79. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 10, $this->source); })()), "counterrors", [], "any", false, false, false, 10)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 10, $this->source); })()), "counterrors", [], "any", false, false, false, 10), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 10, $this->source); })()), "countdeprecations", [], "any", false, false, false, 10) + CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 10, $this->source); })()), "countwarnings", [], "any", false, false, false, 10)), "html", null, true)));
  80. yield "</span>
  81. ";
  82. yield from [];
  83. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  84. // line 12
  85. yield "
  86. ";
  87. // line 13
  88. $context["text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  89. // line 14
  90. yield " <div class=\"sf-toolbar-info-piece\">
  91. <b>Errors</b>
  92. <span class=\"sf-toolbar-status sf-toolbar-status-";
  93. // line 16
  94. yield ((CoreExtension::getAttribute($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); })()), "counterrors", [], "any", false, false, false, 16)) ? ("red") : (""));
  95. yield "\">";
  96. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "counterrors", [], "any", true, true, false, 16)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($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); })()), "counterrors", [], "any", false, false, false, 16), 0)) : (0)), "html", null, true);
  97. yield "</span>
  98. </div>
  99. <div class=\"sf-toolbar-info-piece\">
  100. <b>Warnings</b>
  101. <span class=\"sf-toolbar-status sf-toolbar-status-";
  102. // line 21
  103. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 21, $this->source); })()), "countwarnings", [], "any", false, false, false, 21)) ? ("yellow") : (""));
  104. yield "\">";
  105. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "countwarnings", [], "any", true, true, false, 21)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 21, $this->source); })()), "countwarnings", [], "any", false, false, false, 21), 0)) : (0)), "html", null, true);
  106. yield "</span>
  107. </div>
  108. <div class=\"sf-toolbar-info-piece\">
  109. <b>Deprecations</b>
  110. <span class=\"sf-toolbar-status sf-toolbar-status-";
  111. // line 26
  112. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 26, $this->source); })()), "countdeprecations", [], "any", false, false, false, 26)) ? ("none") : (""));
  113. yield "\">";
  114. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "countdeprecations", [], "any", true, true, false, 26)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 26, $this->source); })()), "countdeprecations", [], "any", false, false, false, 26), 0)) : (0)), "html", null, true);
  115. yield "</span>
  116. </div>
  117. ";
  118. yield from [];
  119. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  120. // line 29
  121. yield "
  122. ";
  123. // line 30
  124. yield Twig\Extension\CoreExtension::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.', 30, $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.', 30, $this->source); })())]);
  125. yield "
  126. ";
  127. }
  128. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  129. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  130. yield from [];
  131. }
  132. // line 34
  133. /**
  134. * @return iterable<null|scalar|\Stringable>
  135. */
  136. public function block_menu(array $context, array $blocks = []): iterable
  137. {
  138. $macros = $this->macros;
  139. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  140. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  141. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  142. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  143. // line 35
  144. yield " <span class=\"label label-status-";
  145. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 35, $this->source); })()), "counterrors", [], "any", false, false, false, 35)) ? ("error") : (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 35, $this->source); })()), "countwarnings", [], "any", false, false, false, 35)) ? ("warning") : ("none"))));
  146. yield " ";
  147. yield ((Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 35, $this->source); })()), "logs", [], "any", false, false, false, 35))) ? ("disabled") : (""));
  148. yield "\">
  149. <span class=\"icon\">";
  150. // line 36
  151. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/logger.svg");
  152. yield "</span>
  153. <strong>Logs</strong>
  154. ";
  155. // line 38
  156. if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 38, $this->source); })()), "counterrors", [], "any", false, false, false, 38) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 38, $this->source); })()), "countdeprecations", [], "any", false, false, false, 38)) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 38, $this->source); })()), "countwarnings", [], "any", false, false, false, 38))) {
  157. // line 39
  158. yield " <span class=\"count\">
  159. <span>";
  160. // line 40
  161. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 40, $this->source); })()), "counterrors", [], "any", false, false, false, 40)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 40, $this->source); })()), "counterrors", [], "any", false, false, false, 40), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 40, $this->source); })()), "countdeprecations", [], "any", false, false, false, 40) + CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 40, $this->source); })()), "countwarnings", [], "any", false, false, false, 40)), "html", null, true)));
  162. yield "</span>
  163. </span>
  164. ";
  165. }
  166. // line 43
  167. yield " </span>
  168. ";
  169. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  170. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171. yield from [];
  172. }
  173. // line 46
  174. /**
  175. * @return iterable<null|scalar|\Stringable>
  176. */
  177. public function block_panel(array $context, array $blocks = []): iterable
  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 47
  185. yield " <h2>Log Messages</h2>
  186. ";
  187. // line 49
  188. if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 49, $this->source); })()), "processedLogs", [], "any", false, false, false, 49))) {
  189. // line 50
  190. yield " <div class=\"empty\">
  191. <p>No log messages available.</p>
  192. </div>
  193. ";
  194. } else {
  195. // line 54
  196. yield " ";
  197. $context["has_error_logs"] = (Twig\Extension\CoreExtension::length($this->env->getCharset(), Twig\Extension\CoreExtension::filter($this->env, Twig\Extension\CoreExtension::column(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 54, $this->source); })()), "processedLogs", [], "any", false, false, false, 54), "type"), function ($__type__) use ($context, $macros) { $context["type"] = $__type__; return ("error" == (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 54, $this->source); })())); })) > 0);
  198. // line 55
  199. yield " ";
  200. $context["has_deprecation_logs"] = (Twig\Extension\CoreExtension::length($this->env->getCharset(), Twig\Extension\CoreExtension::filter($this->env, Twig\Extension\CoreExtension::column(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 55, $this->source); })()), "processedLogs", [], "any", false, false, false, 55), "type"), function ($__type__) use ($context, $macros) { $context["type"] = $__type__; return ("deprecation" == (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 55, $this->source); })())); })) > 0);
  201. // line 56
  202. yield "
  203. ";
  204. // line 57
  205. $context["filters"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 57, $this->source); })()), "filters", [], "any", false, false, false, 57);
  206. // line 58
  207. yield " <div class=\"log-filters\">
  208. <div id=\"log-filter-type\" class=\"log-filter\">
  209. <ul class=\"tab-navigation\">
  210. <li class=\"";
  211. // line 61
  212. yield ((( !(isset($context["has_error_logs"]) || array_key_exists("has_error_logs", $context) ? $context["has_error_logs"] : (function () { throw new RuntimeError('Variable "has_error_logs" does not exist.', 61, $this->source); })()) && !(isset($context["has_deprecation_logs"]) || array_key_exists("has_deprecation_logs", $context) ? $context["has_deprecation_logs"] : (function () { throw new RuntimeError('Variable "has_deprecation_logs" does not exist.', 61, $this->source); })()))) ? ("active") : (""));
  213. yield "\">
  214. <input ";
  215. // line 62
  216. yield ((( !(isset($context["has_error_logs"]) || array_key_exists("has_error_logs", $context) ? $context["has_error_logs"] : (function () { throw new RuntimeError('Variable "has_error_logs" does not exist.', 62, $this->source); })()) && !(isset($context["has_deprecation_logs"]) || array_key_exists("has_deprecation_logs", $context) ? $context["has_deprecation_logs"] : (function () { throw new RuntimeError('Variable "has_deprecation_logs" does not exist.', 62, $this->source); })()))) ? ("checked") : (""));
  217. yield " type=\"radio\" id=\"filter-log-type-all\" name=\"filter-log-type\" value=\"all\">
  218. <label for=\"filter-log-type-all\">All messages</label>
  219. </li>
  220. <li class=\"";
  221. // line 66
  222. yield (((isset($context["has_error_logs"]) || array_key_exists("has_error_logs", $context) ? $context["has_error_logs"] : (function () { throw new RuntimeError('Variable "has_error_logs" does not exist.', 66, $this->source); })())) ? ("active") : (""));
  223. yield "\">
  224. <input ";
  225. // line 67
  226. yield (((isset($context["has_error_logs"]) || array_key_exists("has_error_logs", $context) ? $context["has_error_logs"] : (function () { throw new RuntimeError('Variable "has_error_logs" does not exist.', 67, $this->source); })())) ? ("checked") : (""));
  227. yield " type=\"radio\" id=\"filter-log-type-error\" name=\"filter-log-type\" value=\"error\">
  228. <label for=\"filter-log-type-error\">
  229. Errors
  230. <span class=\"badge status-";
  231. // line 70
  232. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 70, $this->source); })()), "counterrors", [], "any", false, false, false, 70)) ? ("error") : (""));
  233. yield "\">";
  234. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "counterrors", [], "any", true, true, false, 70)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 70, $this->source); })()), "counterrors", [], "any", false, false, false, 70), 0)) : (0)), "html", null, true);
  235. yield "</span>
  236. </label>
  237. </li>
  238. <li class=\"";
  239. // line 74
  240. yield ((( !(isset($context["has_error_logs"]) || array_key_exists("has_error_logs", $context) ? $context["has_error_logs"] : (function () { throw new RuntimeError('Variable "has_error_logs" does not exist.', 74, $this->source); })()) && (isset($context["has_deprecation_logs"]) || array_key_exists("has_deprecation_logs", $context) ? $context["has_deprecation_logs"] : (function () { throw new RuntimeError('Variable "has_deprecation_logs" does not exist.', 74, $this->source); })()))) ? ("active") : (""));
  241. yield "\">
  242. <input ";
  243. // line 75
  244. yield ((( !(isset($context["has_error_logs"]) || array_key_exists("has_error_logs", $context) ? $context["has_error_logs"] : (function () { throw new RuntimeError('Variable "has_error_logs" does not exist.', 75, $this->source); })()) && (isset($context["has_deprecation_logs"]) || array_key_exists("has_deprecation_logs", $context) ? $context["has_deprecation_logs"] : (function () { throw new RuntimeError('Variable "has_deprecation_logs" does not exist.', 75, $this->source); })()))) ? ("checked") : (""));
  245. yield " type=\"radio\" id=\"filter-log-type-deprecation\" name=\"filter-log-type\" value=\"deprecation\">
  246. <label for=\"filter-log-type-deprecation\">
  247. Deprecations
  248. <span class=\"badge status-";
  249. // line 78
  250. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 78, $this->source); })()), "countdeprecations", [], "any", false, false, false, 78)) ? ("warning") : (""));
  251. yield "\">";
  252. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "countdeprecations", [], "any", true, true, false, 78)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 78, $this->source); })()), "countdeprecations", [], "any", false, false, false, 78), 0)) : (0)), "html", null, true);
  253. yield "</span>
  254. </label>
  255. </li>
  256. </ul>
  257. </div>
  258. <details id=\"log-filter-priority\" class=\"log-filter\">
  259. <summary>
  260. <span class=\"icon\">";
  261. // line 86
  262. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/filter.svg");
  263. yield "</span>
  264. Level (<span class=\"filter-active-num\">";
  265. // line 87
  266. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 87, $this->source); })()), "priority", [], "any", false, false, false, 87)) - 1), "html", null, true);
  267. yield "</span>)
  268. </summary>
  269. <div class=\"log-filter-content\">
  270. <div class=\"filter-select-all-or-none\">
  271. <button type=\"button\" class=\"btn btn-link select-all\">Select All</button>
  272. <button type=\"button\" class=\"btn btn-link select-none\">Select None</button>
  273. </div>
  274. ";
  275. // line 96
  276. $context['_parent'] = $context;
  277. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 96, $this->source); })()), "priority", [], "any", false, false, false, 96));
  278. foreach ($context['_seq'] as $context["label"] => $context["value"]) {
  279. // line 97
  280. yield " <div class=\"log-filter-option\">
  281. <input ";
  282. // line 98
  283. yield ((("debug" != $context["value"])) ? ("checked") : (""));
  284. yield " type=\"checkbox\" id=\"filter-log-level-";
  285. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true);
  286. yield "\" name=\"filter-log-level-";
  287. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true);
  288. yield "\" value=\"";
  289. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true);
  290. yield "\">
  291. <label for=\"filter-log-level-";
  292. // line 99
  293. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true);
  294. yield "\">";
  295. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["label"], "html", null, true);
  296. yield "</label>
  297. </div>
  298. ";
  299. }
  300. $_parent = $context['_parent'];
  301. unset($context['_seq'], $context['label'], $context['value'], $context['_parent']);
  302. $context = array_intersect_key($context, $_parent) + $_parent;
  303. // line 102
  304. yield " </div>
  305. </details>
  306. <details id=\"log-filter-channel\" class=\"log-filter\">
  307. <summary>
  308. <span class=\"icon\">";
  309. // line 107
  310. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/filter.svg");
  311. yield "</span>
  312. Channel (<span class=\"filter-active-num\">";
  313. // line 108
  314. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 108, $this->source); })()), "channel", [], "any", false, false, false, 108)) - 1), "html", null, true);
  315. yield "</span>)
  316. </summary>
  317. <div class=\"log-filter-content\">
  318. <div class=\"filter-select-all-or-none\">
  319. <button type=\"button\" class=\"btn btn-link select-all\">Select All</button>
  320. <button type=\"button\" class=\"btn btn-link select-none\">Select None</button>
  321. </div>
  322. ";
  323. // line 117
  324. $context['_parent'] = $context;
  325. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 117, $this->source); })()), "channel", [], "any", false, false, false, 117));
  326. foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
  327. // line 118
  328. yield " <div class=\"log-filter-option\">
  329. <input ";
  330. // line 119
  331. yield ((("event" != $context["value"])) ? ("checked") : (""));
  332. yield " type=\"checkbox\" id=\"filter-log-channel-";
  333. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true);
  334. yield "\" name=\"filter-log-channel-";
  335. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true);
  336. yield "\" value=\"";
  337. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true);
  338. yield "\">
  339. <label for=\"filter-log-channel-";
  340. // line 120
  341. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true);
  342. yield "\">";
  343. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::titleCase($this->env->getCharset(), $context["value"]), "html", null, true);
  344. yield "</label>
  345. </div>
  346. ";
  347. }
  348. $_parent = $context['_parent'];
  349. unset($context['_seq'], $context['_key'], $context['value'], $context['_parent']);
  350. $context = array_intersect_key($context, $_parent) + $_parent;
  351. // line 123
  352. yield " </div>
  353. </details>
  354. </div>
  355. <table class=\"logs\">
  356. <colgroup>
  357. <col width=\"140px\">
  358. <col>
  359. </colgroup>
  360. <thead>
  361. <tr>
  362. <th>Time</th>
  363. <th>Message</th>
  364. </tr>
  365. </thead>
  366. <tbody>
  367. ";
  368. // line 141
  369. $context['_parent'] = $context;
  370. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 141, $this->source); })()), "processedLogs", [], "any", false, false, false, 141));
  371. $context['loop'] = [
  372. 'parent' => $context['_parent'],
  373. 'index0' => 0,
  374. 'index' => 1,
  375. 'first' => true,
  376. ];
  377. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  378. $length = count($context['_seq']);
  379. $context['loop']['revindex0'] = $length - 1;
  380. $context['loop']['revindex'] = $length;
  381. $context['loop']['length'] = $length;
  382. $context['loop']['last'] = 1 === $length;
  383. }
  384. foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
  385. // line 142
  386. yield " ";
  387. $context["css_class"] = ((("error" == CoreExtension::getAttribute($this->env, $this->source, $context["log"], "type", [], "any", false, false, false, 142))) ? ("error") : (((((CoreExtension::getAttribute($this->env, $this->source, // line 143
  388. $context["log"], "priorityName", [], "any", false, false, false, 143) == "WARNING") || ("deprecation" == CoreExtension::getAttribute($this->env, $this->source, $context["log"], "type", [], "any", false, false, false, 143)))) ? ("warning") : (((("silenced" == CoreExtension::getAttribute($this->env, $this->source, // line 144
  389. $context["log"], "type", [], "any", false, false, false, 144))) ? ("silenced") : (""))))));
  390. // line 146
  391. yield " <tr class=\"log-status-";
  392. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["css_class"]) || array_key_exists("css_class", $context) ? $context["css_class"] : (function () { throw new RuntimeError('Variable "css_class" does not exist.', 146, $this->source); })()), "html", null, true);
  393. yield "\" data-type=\"";
  394. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["log"], "type", [], "any", false, false, false, 146), "html", null, true);
  395. yield "\" data-priority=\"";
  396. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["log"], "priority", [], "any", false, false, false, 146), "html", null, true);
  397. yield "\" data-channel=\"";
  398. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["log"], "channel", [], "any", false, false, false, 146), "html", null, true);
  399. yield "\" style=\"";
  400. yield (((("event" == CoreExtension::getAttribute($this->env, $this->source, $context["log"], "channel", [], "any", false, false, false, 146)) || ("DEBUG" == CoreExtension::getAttribute($this->env, $this->source, $context["log"], "priorityName", [], "any", false, false, false, 146)))) ? ("display: none") : (""));
  401. yield "\">
  402. <td class=\"log-timestamp\">
  403. <time title=\"";
  404. // line 148
  405. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["log"], "timestamp", [], "any", false, false, false, 148), "r"), "html", null, true);
  406. yield "\" datetime=\"";
  407. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["log"], "timestamp", [], "any", false, false, false, 148), "c"), "html", null, true);
  408. yield "\">
  409. ";
  410. // line 149
  411. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["log"], "timestamp", [], "any", false, false, false, 149), "H:i:s.v"), "html", null, true);
  412. yield "
  413. </time>
  414. ";
  415. // line 152
  416. if ((CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["log"], "type", [], "any", false, false, false, 152), ["error", "deprecation", "silenced"]) || ("WARNING" == CoreExtension::getAttribute($this->env, $this->source, $context["log"], "priorityName", [], "any", false, false, false, 152)))) {
  417. // line 153
  418. yield " <span class=\"log-type-badge badge badge-";
  419. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["css_class"]) || array_key_exists("css_class", $context) ? $context["css_class"] : (function () { throw new RuntimeError('Variable "css_class" does not exist.', 153, $this->source); })()), "html", null, true);
  420. yield "\">
  421. ";
  422. // line 154
  423. if ((("error" == CoreExtension::getAttribute($this->env, $this->source, $context["log"], "type", [], "any", false, false, false, 154)) || ("WARNING" == CoreExtension::getAttribute($this->env, $this->source, $context["log"], "priorityName", [], "any", false, false, false, 154)))) {
  424. // line 155
  425. yield " ";
  426. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["log"], "priorityName", [], "any", false, false, false, 155)), "html", null, true);
  427. yield "
  428. ";
  429. } else {
  430. // line 157
  431. yield " ";
  432. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["log"], "type", [], "any", false, false, false, 157)), "html", null, true);
  433. yield "
  434. ";
  435. }
  436. // line 159
  437. yield " </span>
  438. ";
  439. } else {
  440. // line 161
  441. yield " <span class=\"log-type-badge badge badge-";
  442. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["css_class"]) || array_key_exists("css_class", $context) ? $context["css_class"] : (function () { throw new RuntimeError('Variable "css_class" does not exist.', 161, $this->source); })()), "html", null, true);
  443. yield "\">
  444. ";
  445. // line 162
  446. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["log"], "priorityName", [], "any", false, false, false, 162)), "html", null, true);
  447. yield "
  448. </span>
  449. ";
  450. }
  451. // line 165
  452. yield " </td>
  453. <td class=\"font-normal\">
  454. ";
  455. // line 168
  456. yield $macros["helper"]->getTemplateForMacro("macro_render_log_message", $context, 168, $this->getSourceContext())->macro_render_log_message(...["debug", CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 168), $context["log"]]);
  457. yield "
  458. </td>
  459. </tr>
  460. ";
  461. ++$context['loop']['index0'];
  462. ++$context['loop']['index'];
  463. $context['loop']['first'] = false;
  464. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  465. --$context['loop']['revindex0'];
  466. --$context['loop']['revindex'];
  467. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  468. }
  469. }
  470. $_parent = $context['_parent'];
  471. unset($context['_seq'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
  472. $context = array_intersect_key($context, $_parent) + $_parent;
  473. // line 172
  474. yield " </tbody>
  475. </table>
  476. <div class=\"no-logs-message empty\">
  477. <p>There are no log messages.</p>
  478. </div>
  479. <script>Sfjs.initializeLogsTable();</script>
  480. ";
  481. }
  482. // line 181
  483. yield "
  484. ";
  485. // line 182
  486. $context["compilerLogTotal"] = 0;
  487. // line 183
  488. yield " ";
  489. $context['_parent'] = $context;
  490. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 183, $this->source); })()), "compilerLogs", [], "any", false, false, false, 183));
  491. foreach ($context['_seq'] as $context["_key"] => $context["logs"]) {
  492. // line 184
  493. yield " ";
  494. $context["compilerLogTotal"] = ((isset($context["compilerLogTotal"]) || array_key_exists("compilerLogTotal", $context) ? $context["compilerLogTotal"] : (function () { throw new RuntimeError('Variable "compilerLogTotal" does not exist.', 184, $this->source); })()) + Twig\Extension\CoreExtension::length($this->env->getCharset(), $context["logs"]));
  495. // line 185
  496. yield " ";
  497. }
  498. $_parent = $context['_parent'];
  499. unset($context['_seq'], $context['_key'], $context['logs'], $context['_parent']);
  500. $context = array_intersect_key($context, $_parent) + $_parent;
  501. // line 186
  502. yield "
  503. <details class=\"container-compilation-logs\">
  504. <summary>
  505. <h4>Container Compilation Logs <span class=\"text-muted\">(";
  506. // line 189
  507. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["compilerLogTotal"]) || array_key_exists("compilerLogTotal", $context) ? $context["compilerLogTotal"] : (function () { throw new RuntimeError('Variable "compilerLogTotal" does not exist.', 189, $this->source); })()), "html", null, true);
  508. yield ")</span></h4>
  509. <span class=\"text-muted\">Log messages generated during the compilation of the service container.</span>
  510. </summary>
  511. ";
  512. // line 193
  513. if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 193, $this->source); })()), "compilerLogs", [], "any", false, false, false, 193))) {
  514. // line 194
  515. yield " <div class=\"empty\">
  516. <p>There are no compiler log messages.</p>
  517. </div>
  518. ";
  519. } else {
  520. // line 198
  521. yield " <table class=\"container-logs\">
  522. <thead>
  523. <tr>
  524. <th>Messages</th>
  525. <th class=\"full-width\">Class</th>
  526. </tr>
  527. </thead>
  528. <tbody>
  529. ";
  530. // line 207
  531. $context['_parent'] = $context;
  532. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 207, $this->source); })()), "compilerLogs", [], "any", false, false, false, 207));
  533. $context['loop'] = [
  534. 'parent' => $context['_parent'],
  535. 'index0' => 0,
  536. 'index' => 1,
  537. 'first' => true,
  538. ];
  539. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  540. $length = count($context['_seq']);
  541. $context['loop']['revindex0'] = $length - 1;
  542. $context['loop']['revindex'] = $length;
  543. $context['loop']['length'] = $length;
  544. $context['loop']['last'] = 1 === $length;
  545. }
  546. foreach ($context['_seq'] as $context["class"] => $context["logs"]) {
  547. // line 208
  548. yield " <tr>
  549. <td class=\"font-normal text-right\">";
  550. // line 209
  551. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), $context["logs"]), "html", null, true);
  552. yield "</td>
  553. <td class=\"font-normal\">
  554. ";
  555. // line 211
  556. $context["context_id"] = ("context-compiler-" . CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 211));
  557. // line 212
  558. yield "
  559. <button type=\"button\" class=\"btn btn-link sf-toggle\" data-toggle-selector=\"#";
  560. // line 213
  561. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["context_id"]) || array_key_exists("context_id", $context) ? $context["context_id"] : (function () { throw new RuntimeError('Variable "context_id" does not exist.', 213, $this->source); })()), "html", null, true);
  562. yield "\" data-toggle-alt-content=\"";
  563. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["class"], "html", null, true);
  564. yield "\">";
  565. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["class"], "html", null, true);
  566. yield "</button>
  567. <div id=\"";
  568. // line 215
  569. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["context_id"]) || array_key_exists("context_id", $context) ? $context["context_id"] : (function () { throw new RuntimeError('Variable "context_id" does not exist.', 215, $this->source); })()), "html", null, true);
  570. yield "\" class=\"context sf-toggle-content sf-toggle-hidden\">
  571. <ul class=\"break-long-words\">
  572. ";
  573. // line 217
  574. $context['_parent'] = $context;
  575. $context['_seq'] = CoreExtension::ensureTraversable($context["logs"]);
  576. foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
  577. // line 218
  578. yield " <li>";
  579. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpLog($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["log"], "message", [], "any", false, false, false, 218));
  580. yield "</li>
  581. ";
  582. }
  583. $_parent = $context['_parent'];
  584. unset($context['_seq'], $context['_key'], $context['log'], $context['_parent']);
  585. $context = array_intersect_key($context, $_parent) + $_parent;
  586. // line 220
  587. yield " </ul>
  588. </div>
  589. </td>
  590. </tr>
  591. ";
  592. ++$context['loop']['index0'];
  593. ++$context['loop']['index'];
  594. $context['loop']['first'] = false;
  595. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  596. --$context['loop']['revindex0'];
  597. --$context['loop']['revindex'];
  598. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  599. }
  600. }
  601. $_parent = $context['_parent'];
  602. unset($context['_seq'], $context['class'], $context['logs'], $context['_parent'], $context['loop']);
  603. $context = array_intersect_key($context, $_parent) + $_parent;
  604. // line 225
  605. yield " </tbody>
  606. </table>
  607. ";
  608. }
  609. // line 228
  610. yield " </details>
  611. ";
  612. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  613. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  614. yield from [];
  615. }
  616. // line 231
  617. public function macro_render_log_message($category = null, $log_index = null, $log = null, ...$varargs): string|Markup
  618. {
  619. $macros = $this->macros;
  620. $context = [
  621. "category" => $category,
  622. "log_index" => $log_index,
  623. "log" => $log,
  624. "varargs" => $varargs,
  625. ] + $this->env->getGlobals();
  626. $blocks = [];
  627. return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  628. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  629. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_log_message"));
  630. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  631. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_log_message"));
  632. // line 232
  633. yield " ";
  634. $context["has_context"] = (CoreExtension::getAttribute($this->env, $this->source, ($context["log"] ?? null), "context", [], "any", true, true, false, 232) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 232, $this->source); })()), "context", [], "any", false, false, false, 232)));
  635. // line 233
  636. yield " ";
  637. $context["has_trace"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["log"] ?? null), "context", [], "any", false, true, false, 233), "exception", [], "any", false, true, false, 233), "trace", [], "any", true, true, false, 233);
  638. // line 234
  639. yield "
  640. ";
  641. // line 235
  642. if ( !(isset($context["has_context"]) || array_key_exists("has_context", $context) ? $context["has_context"] : (function () { throw new RuntimeError('Variable "has_context" does not exist.', 235, $this->source); })())) {
  643. // line 236
  644. yield " ";
  645. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpLog($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 236, $this->source); })()), "message", [], "any", false, false, false, 236));
  646. yield "
  647. ";
  648. } else {
  649. // line 238
  650. yield " ";
  651. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpLog($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 238, $this->source); })()), "message", [], "any", false, false, false, 238), CoreExtension::getAttribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 238, $this->source); })()), "context", [], "any", false, false, false, 238));
  652. yield "
  653. ";
  654. }
  655. // line 240
  656. yield "
  657. <div class=\"log-metadata\">
  658. ";
  659. // line 242
  660. if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 242, $this->source); })()), "channel", [], "any", false, false, false, 242)) {
  661. // line 243
  662. yield " <span class=\"badge\">";
  663. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 243, $this->source); })()), "channel", [], "any", false, false, false, 243), "html", null, true);
  664. yield "</span>
  665. ";
  666. }
  667. // line 245
  668. yield "
  669. ";
  670. // line 246
  671. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["log"] ?? null), "errorCount", [], "any", true, true, false, 246) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 246, $this->source); })()), "errorCount", [], "any", false, false, false, 246) > 1))) {
  672. // line 247
  673. yield " <span class=\"log-num-occurrences\">";
  674. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 247, $this->source); })()), "errorCount", [], "any", false, false, false, 247), "html", null, true);
  675. yield " times</span>
  676. ";
  677. }
  678. // line 249
  679. yield "
  680. ";
  681. // line 250
  682. if ((isset($context["has_context"]) || array_key_exists("has_context", $context) ? $context["has_context"] : (function () { throw new RuntimeError('Variable "has_context" does not exist.', 250, $this->source); })())) {
  683. // line 251
  684. yield " ";
  685. $context["context_id"] = ((("context-" . (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 251, $this->source); })())) . "-") . (isset($context["log_index"]) || array_key_exists("log_index", $context) ? $context["log_index"] : (function () { throw new RuntimeError('Variable "log_index" does not exist.', 251, $this->source); })()));
  686. // line 252
  687. yield " <span><button type=\"button\" class=\"btn btn-link text-small sf-toggle\" data-toggle-selector=\"#";
  688. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["context_id"]) || array_key_exists("context_id", $context) ? $context["context_id"] : (function () { throw new RuntimeError('Variable "context_id" does not exist.', 252, $this->source); })()), "html", null, true);
  689. yield "\" data-toggle-alt-content=\"Hide context\">Show context</button></span>
  690. ";
  691. }
  692. // line 254
  693. yield "
  694. ";
  695. // line 255
  696. if ((isset($context["has_trace"]) || array_key_exists("has_trace", $context) ? $context["has_trace"] : (function () { throw new RuntimeError('Variable "has_trace" does not exist.', 255, $this->source); })())) {
  697. // line 256
  698. yield " ";
  699. $context["trace_id"] = ((("trace-" . (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 256, $this->source); })())) . "-") . (isset($context["log_index"]) || array_key_exists("log_index", $context) ? $context["log_index"] : (function () { throw new RuntimeError('Variable "log_index" does not exist.', 256, $this->source); })()));
  700. // line 257
  701. yield " <span><button type=\"button\" class=\"btn btn-link text-small sf-toggle\" data-toggle-selector=\"#";
  702. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["trace_id"]) || array_key_exists("trace_id", $context) ? $context["trace_id"] : (function () { throw new RuntimeError('Variable "trace_id" does not exist.', 257, $this->source); })()), "html", null, true);
  703. yield "\" data-toggle-alt-content=\"Hide trace\">Show trace</button></span>
  704. ";
  705. }
  706. // line 259
  707. yield "
  708. ";
  709. // line 260
  710. if ((isset($context["has_context"]) || array_key_exists("has_context", $context) ? $context["has_context"] : (function () { throw new RuntimeError('Variable "has_context" does not exist.', 260, $this->source); })())) {
  711. // line 261
  712. yield " <div id=\"";
  713. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["context_id"]) || array_key_exists("context_id", $context) ? $context["context_id"] : (function () { throw new RuntimeError('Variable "context_id" does not exist.', 261, $this->source); })()), "html", null, true);
  714. yield "\" class=\"context sf-toggle-content sf-toggle-hidden\">
  715. ";
  716. // line 262
  717. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 262, $this->source); })()), "context", [], "any", false, false, false, 262), 1);
  718. yield "
  719. </div>
  720. ";
  721. }
  722. // line 265
  723. yield "
  724. ";
  725. // line 266
  726. if ((isset($context["has_trace"]) || array_key_exists("has_trace", $context) ? $context["has_trace"] : (function () { throw new RuntimeError('Variable "has_trace" does not exist.', 266, $this->source); })())) {
  727. // line 267
  728. yield " <div id=\"";
  729. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["trace_id"]) || array_key_exists("trace_id", $context) ? $context["trace_id"] : (function () { throw new RuntimeError('Variable "trace_id" does not exist.', 267, $this->source); })()), "html", null, true);
  730. yield "\" class=\"context sf-toggle-content sf-toggle-hidden\">
  731. ";
  732. // line 268
  733. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 268, $this->source); })()), "context", [], "any", false, false, false, 268), "exception", [], "any", false, false, false, 268), "trace", [], "any", false, false, false, 268), 1);
  734. yield "
  735. </div>
  736. ";
  737. }
  738. // line 271
  739. yield " </div>
  740. ";
  741. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  742. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  743. yield from [];
  744. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  745. }
  746. /**
  747. * @codeCoverageIgnore
  748. */
  749. public function getTemplateName(): string
  750. {
  751. return "@WebProfiler/Collector/logger.html.twig";
  752. }
  753. /**
  754. * @codeCoverageIgnore
  755. */
  756. public function isTraitable(): bool
  757. {
  758. return false;
  759. }
  760. /**
  761. * @codeCoverageIgnore
  762. */
  763. public function getDebugInfo(): array
  764. {
  765. return array ( 799 => 271, 793 => 268, 788 => 267, 786 => 266, 783 => 265, 777 => 262, 772 => 261, 770 => 260, 767 => 259, 761 => 257, 758 => 256, 756 => 255, 753 => 254, 747 => 252, 744 => 251, 742 => 250, 739 => 249, 733 => 247, 731 => 246, 728 => 245, 722 => 243, 720 => 242, 716 => 240, 710 => 238, 704 => 236, 702 => 235, 699 => 234, 696 => 233, 693 => 232, 673 => 231, 661 => 228, 656 => 225, 638 => 220, 629 => 218, 625 => 217, 620 => 215, 611 => 213, 608 => 212, 606 => 211, 601 => 209, 598 => 208, 581 => 207, 570 => 198, 564 => 194, 562 => 193, 555 => 189, 550 => 186, 544 => 185, 541 => 184, 536 => 183, 534 => 182, 531 => 181, 520 => 172, 502 => 168, 497 => 165, 491 => 162, 486 => 161, 482 => 159, 476 => 157, 470 => 155, 468 => 154, 463 => 153, 461 => 152, 455 => 149, 449 => 148, 435 => 146, 433 => 144, 432 => 143, 430 => 142, 413 => 141, 393 => 123, 382 => 120, 372 => 119, 369 => 118, 365 => 117, 353 => 108, 349 => 107, 342 => 102, 331 => 99, 321 => 98, 318 => 97, 314 => 96, 302 => 87, 298 => 86, 285 => 78, 279 => 75, 275 => 74, 266 => 70, 260 => 67, 256 => 66, 249 => 62, 245 => 61, 240 => 58, 238 => 57, 235 => 56, 232 => 55, 229 => 54, 223 => 50, 221 => 49, 217 => 47, 204 => 46, 192 => 43, 186 => 40, 183 => 39, 181 => 38, 176 => 36, 169 => 35, 156 => 34, 142 => 30, 139 => 29, 130 => 26, 120 => 21, 110 => 16, 106 => 14, 104 => 13, 101 => 12, 95 => 10, 90 => 9, 87 => 8, 84 => 7, 81 => 6, 68 => 5, 57 => 1, 55 => 3, 42 => 1,);
  766. }
  767. public function getSourceContext(): Source
  768. {
  769. return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  770. {% import _self as helper %}
  771. {% block toolbar %}
  772. {% if collector.counterrors or collector.countdeprecations or collector.countwarnings %}
  773. {% set icon %}
  774. {% set status_color = collector.counterrors ? 'red' : collector.countwarnings ? 'yellow' : 'none' %}
  775. {{ include('@WebProfiler/Icon/logger.svg') }}
  776. <span class=\"sf-toolbar-value\">{{ collector.counterrors ?: (collector.countdeprecations + collector.countwarnings) }}</span>
  777. {% endset %}
  778. {% set text %}
  779. <div class=\"sf-toolbar-info-piece\">
  780. <b>Errors</b>
  781. <span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.counterrors ? 'red' }}\">{{ collector.counterrors|default(0) }}</span>
  782. </div>
  783. <div class=\"sf-toolbar-info-piece\">
  784. <b>Warnings</b>
  785. <span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countwarnings ? 'yellow' }}\">{{ collector.countwarnings|default(0) }}</span>
  786. </div>
  787. <div class=\"sf-toolbar-info-piece\">
  788. <b>Deprecations</b>
  789. <span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countdeprecations ? 'none' }}\">{{ collector.countdeprecations|default(0) }}</span>
  790. </div>
  791. {% endset %}
  792. {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
  793. {% endif %}
  794. {% endblock %}
  795. {% block menu %}
  796. <span class=\"label label-status-{{ collector.counterrors ? 'error' : collector.countwarnings ? 'warning' : 'none' }} {{ collector.logs is empty ? 'disabled' }}\">
  797. <span class=\"icon\">{{ include('@WebProfiler/Icon/logger.svg') }}</span>
  798. <strong>Logs</strong>
  799. {% if collector.counterrors or collector.countdeprecations or collector.countwarnings %}
  800. <span class=\"count\">
  801. <span>{{ collector.counterrors ?: (collector.countdeprecations + collector.countwarnings) }}</span>
  802. </span>
  803. {% endif %}
  804. </span>
  805. {% endblock %}
  806. {% block panel %}
  807. <h2>Log Messages</h2>
  808. {% if collector.processedLogs is empty %}
  809. <div class=\"empty\">
  810. <p>No log messages available.</p>
  811. </div>
  812. {% else %}
  813. {% set has_error_logs = collector.processedLogs|column('type')|filter(type => 'error' == type)|length > 0 %}
  814. {% set has_deprecation_logs = collector.processedLogs|column('type')|filter(type => 'deprecation' == type)|length > 0 %}
  815. {% set filters = collector.filters %}
  816. <div class=\"log-filters\">
  817. <div id=\"log-filter-type\" class=\"log-filter\">
  818. <ul class=\"tab-navigation\">
  819. <li class=\"{{ not has_error_logs and not has_deprecation_logs ? 'active' }}\">
  820. <input {{ not has_error_logs and not has_deprecation_logs ? 'checked' }} type=\"radio\" id=\"filter-log-type-all\" name=\"filter-log-type\" value=\"all\">
  821. <label for=\"filter-log-type-all\">All messages</label>
  822. </li>
  823. <li class=\"{{ has_error_logs ? 'active' }}\">
  824. <input {{ has_error_logs ? 'checked' }} type=\"radio\" id=\"filter-log-type-error\" name=\"filter-log-type\" value=\"error\">
  825. <label for=\"filter-log-type-error\">
  826. Errors
  827. <span class=\"badge status-{{ collector.counterrors ? 'error' }}\">{{ collector.counterrors|default(0) }}</span>
  828. </label>
  829. </li>
  830. <li class=\"{{ not has_error_logs and has_deprecation_logs ? 'active' }}\">
  831. <input {{ not has_error_logs and has_deprecation_logs ? 'checked' }} type=\"radio\" id=\"filter-log-type-deprecation\" name=\"filter-log-type\" value=\"deprecation\">
  832. <label for=\"filter-log-type-deprecation\">
  833. Deprecations
  834. <span class=\"badge status-{{ collector.countdeprecations ? 'warning' }}\">{{ collector.countdeprecations|default(0) }}</span>
  835. </label>
  836. </li>
  837. </ul>
  838. </div>
  839. <details id=\"log-filter-priority\" class=\"log-filter\">
  840. <summary>
  841. <span class=\"icon\">{{ include('@WebProfiler/Icon/filter.svg') }}</span>
  842. Level (<span class=\"filter-active-num\">{{ filters.priority|length - 1 }}</span>)
  843. </summary>
  844. <div class=\"log-filter-content\">
  845. <div class=\"filter-select-all-or-none\">
  846. <button type=\"button\" class=\"btn btn-link select-all\">Select All</button>
  847. <button type=\"button\" class=\"btn btn-link select-none\">Select None</button>
  848. </div>
  849. {% for label, value in filters.priority %}
  850. <div class=\"log-filter-option\">
  851. <input {{ 'debug' != value ? 'checked' }} type=\"checkbox\" id=\"filter-log-level-{{ value }}\" name=\"filter-log-level-{{ value }}\" value=\"{{ value }}\">
  852. <label for=\"filter-log-level-{{ value }}\">{{ label }}</label>
  853. </div>
  854. {% endfor %}
  855. </div>
  856. </details>
  857. <details id=\"log-filter-channel\" class=\"log-filter\">
  858. <summary>
  859. <span class=\"icon\">{{ include('@WebProfiler/Icon/filter.svg') }}</span>
  860. Channel (<span class=\"filter-active-num\">{{ filters.channel|length - 1 }}</span>)
  861. </summary>
  862. <div class=\"log-filter-content\">
  863. <div class=\"filter-select-all-or-none\">
  864. <button type=\"button\" class=\"btn btn-link select-all\">Select All</button>
  865. <button type=\"button\" class=\"btn btn-link select-none\">Select None</button>
  866. </div>
  867. {% for value in filters.channel %}
  868. <div class=\"log-filter-option\">
  869. <input {{ 'event' != value ? 'checked' }} type=\"checkbox\" id=\"filter-log-channel-{{ value }}\" name=\"filter-log-channel-{{ value }}\" value=\"{{ value }}\">
  870. <label for=\"filter-log-channel-{{ value }}\">{{ value|title }}</label>
  871. </div>
  872. {% endfor %}
  873. </div>
  874. </details>
  875. </div>
  876. <table class=\"logs\">
  877. <colgroup>
  878. <col width=\"140px\">
  879. <col>
  880. </colgroup>
  881. <thead>
  882. <tr>
  883. <th>Time</th>
  884. <th>Message</th>
  885. </tr>
  886. </thead>
  887. <tbody>
  888. {% for log in collector.processedLogs %}
  889. {% set css_class = 'error' == log.type ? 'error'
  890. : (log.priorityName == 'WARNING' or 'deprecation' == log.type) ? 'warning'
  891. : 'silenced' == log.type ? 'silenced'
  892. %}
  893. <tr class=\"log-status-{{ css_class }}\" data-type=\"{{ log.type }}\" data-priority=\"{{ log.priority }}\" data-channel=\"{{ log.channel }}\" style=\"{{ 'event' == log.channel or 'DEBUG' == log.priorityName ? 'display: none' }}\">
  894. <td class=\"log-timestamp\">
  895. <time title=\"{{ log.timestamp|date('r') }}\" datetime=\"{{ log.timestamp|date('c') }}\">
  896. {{ log.timestamp|date('H:i:s.v') }}
  897. </time>
  898. {% if log.type in ['error', 'deprecation', 'silenced'] or 'WARNING' == log.priorityName %}
  899. <span class=\"log-type-badge badge badge-{{ css_class }}\">
  900. {% if 'error' == log.type or 'WARNING' == log.priorityName %}
  901. {{ log.priorityName|lower }}
  902. {% else %}
  903. {{ log.type|lower }}
  904. {% endif %}
  905. </span>
  906. {% else %}
  907. <span class=\"log-type-badge badge badge-{{ css_class }}\">
  908. {{ log.priorityName|lower }}
  909. </span>
  910. {% endif %}
  911. </td>
  912. <td class=\"font-normal\">
  913. {{ helper.render_log_message('debug', loop.index, log) }}
  914. </td>
  915. </tr>
  916. {% endfor %}
  917. </tbody>
  918. </table>
  919. <div class=\"no-logs-message empty\">
  920. <p>There are no log messages.</p>
  921. </div>
  922. <script>Sfjs.initializeLogsTable();</script>
  923. {% endif %}
  924. {% set compilerLogTotal = 0 %}
  925. {% for logs in collector.compilerLogs %}
  926. {% set compilerLogTotal = compilerLogTotal + logs|length %}
  927. {% endfor %}
  928. <details class=\"container-compilation-logs\">
  929. <summary>
  930. <h4>Container Compilation Logs <span class=\"text-muted\">({{ compilerLogTotal }})</span></h4>
  931. <span class=\"text-muted\">Log messages generated during the compilation of the service container.</span>
  932. </summary>
  933. {% if collector.compilerLogs is empty %}
  934. <div class=\"empty\">
  935. <p>There are no compiler log messages.</p>
  936. </div>
  937. {% else %}
  938. <table class=\"container-logs\">
  939. <thead>
  940. <tr>
  941. <th>Messages</th>
  942. <th class=\"full-width\">Class</th>
  943. </tr>
  944. </thead>
  945. <tbody>
  946. {% for class, logs in collector.compilerLogs %}
  947. <tr>
  948. <td class=\"font-normal text-right\">{{ logs|length }}</td>
  949. <td class=\"font-normal\">
  950. {% set context_id = 'context-compiler-' ~ loop.index %}
  951. <button type=\"button\" class=\"btn btn-link sf-toggle\" data-toggle-selector=\"#{{ context_id }}\" data-toggle-alt-content=\"{{ class }}\">{{ class }}</button>
  952. <div id=\"{{ context_id }}\" class=\"context sf-toggle-content sf-toggle-hidden\">
  953. <ul class=\"break-long-words\">
  954. {% for log in logs %}
  955. <li>{{ profiler_dump_log(log.message) }}</li>
  956. {% endfor %}
  957. </ul>
  958. </div>
  959. </td>
  960. </tr>
  961. {% endfor %}
  962. </tbody>
  963. </table>
  964. {% endif %}
  965. </details>
  966. {% endblock %}
  967. {% macro render_log_message(category, log_index, log) %}
  968. {% set has_context = log.context is defined and log.context is not empty %}
  969. {% set has_trace = log.context.exception.trace is defined %}
  970. {% if not has_context %}
  971. {{ profiler_dump_log(log.message) }}
  972. {% else %}
  973. {{ profiler_dump_log(log.message, log.context) }}
  974. {% endif %}
  975. <div class=\"log-metadata\">
  976. {% if log.channel %}
  977. <span class=\"badge\">{{ log.channel }}</span>
  978. {% endif %}
  979. {% if log.errorCount is defined and log.errorCount > 1 %}
  980. <span class=\"log-num-occurrences\">{{ log.errorCount }} times</span>
  981. {% endif %}
  982. {% if has_context %}
  983. {% set context_id = 'context-' ~ category ~ '-' ~ log_index %}
  984. <span><button type=\"button\" class=\"btn btn-link text-small sf-toggle\" data-toggle-selector=\"#{{ context_id }}\" data-toggle-alt-content=\"Hide context\">Show context</button></span>
  985. {% endif %}
  986. {% if has_trace %}
  987. {% set trace_id = 'trace-' ~ category ~ '-' ~ log_index %}
  988. <span><button type=\"button\" class=\"btn btn-link text-small sf-toggle\" data-toggle-selector=\"#{{ trace_id }}\" data-toggle-alt-content=\"Hide trace\">Show trace</button></span>
  989. {% endif %}
  990. {% if has_context %}
  991. <div id=\"{{ context_id }}\" class=\"context sf-toggle-content sf-toggle-hidden\">
  992. {{ profiler_dump(log.context, maxDepth=1) }}
  993. </div>
  994. {% endif %}
  995. {% if has_trace %}
  996. <div id=\"{{ trace_id }}\" class=\"context sf-toggle-content sf-toggle-hidden\">
  997. {{ profiler_dump(log.context.exception.trace, maxDepth=1) }}
  998. </div>
  999. {% endif %}
  1000. </div>
  1001. {% endmacro %}
  1002. ", "@WebProfiler/Collector/logger.html.twig", "/Volumes/madi/opt/madi/www/geopos_proj/vendor/symfony/web-profiler-bundle/Resources/views/Collector/logger.html.twig");
  1003. }
  1004. }