var_dev/cache/dev/twig/0d/0deb00fa074c0097113896bf866bf63c.php line 55

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/request.html.twig */
  16. class __TwigTemplate_21f9901d1ed4290ee05d9d75d8da4bce 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/request.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/request.html.twig"));
  45. $this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/request.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 3
  51. /**
  52. * @return iterable<null|scalar|\Stringable>
  53. */
  54. public function block_toolbar(array $context, array $blocks = []): iterable
  55. {
  56. $macros = $this->macros;
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
  61. // line 4
  62. yield " ";
  63. $macros["helper"] = $this;
  64. // line 5
  65. yield " ";
  66. $context["request_handler"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  67. // line 6
  68. yield " ";
  69. yield $macros["helper"]->getTemplateForMacro("macro_set_handler", $context, 6, $this->getSourceContext())->macro_set_handler(...[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); })()), "controller", [], "any", false, false, false, 6)]);
  70. yield "
  71. ";
  72. yield from [];
  73. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  74. // line 8
  75. yield "
  76. ";
  77. // line 9
  78. 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.', 9, $this->source); })()), "redirect", [], "any", false, false, false, 9)) {
  79. // line 10
  80. yield " ";
  81. $context["redirect_handler"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  82. // line 11
  83. yield " ";
  84. yield $macros["helper"]->getTemplateForMacro("macro_set_handler", $context, 11, $this->getSourceContext())->macro_set_handler(...[CoreExtension::getAttribute($this->env, $this->source, 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.', 11, $this->source); })()), "redirect", [], "any", false, false, false, 11), "controller", [], "any", false, false, false, 11), CoreExtension::getAttribute($this->env, $this->source, 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.', 11, $this->source); })()), "redirect", [], "any", false, false, false, 11), "route", [], "any", false, false, false, 11), ((("GET" != CoreExtension::getAttribute($this->env, $this->source, 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.', 11, $this->source); })()), "redirect", [], "any", false, false, false, 11), "method", [], "any", false, false, false, 11))) ? (CoreExtension::getAttribute($this->env, $this->source, 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.', 11, $this->source); })()), "redirect", [], "any", false, false, false, 11), "method", [], "any", false, false, false, 11)) : (""))]);
  85. yield "
  86. ";
  87. yield from [];
  88. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  89. // line 13
  90. yield " ";
  91. }
  92. // line 14
  93. yield "
  94. ";
  95. // line 15
  96. 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.', 15, $this->source); })()), "forwardtoken", [], "any", false, false, false, 15)) {
  97. // line 16
  98. yield " ";
  99. $context["forward_profile"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 16, $this->source); })()), "childByToken", [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); })()), "forwardtoken", [], "any", false, false, false, 16)], "method", false, false, false, 16);
  100. // line 17
  101. yield " ";
  102. $context["forward_handler"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  103. // line 18
  104. yield " ";
  105. yield $macros["helper"]->getTemplateForMacro("macro_set_handler", $context, 18, $this->getSourceContext())->macro_set_handler(...[(((isset($context["forward_profile"]) || array_key_exists("forward_profile", $context) ? $context["forward_profile"] : (function () { throw new RuntimeError('Variable "forward_profile" does not exist.', 18, $this->source); })())) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["forward_profile"]) || array_key_exists("forward_profile", $context) ? $context["forward_profile"] : (function () { throw new RuntimeError('Variable "forward_profile" does not exist.', 18, $this->source); })()), "collector", ["request"], "method", false, false, false, 18), "controller", [], "any", false, false, false, 18)) : ("n/a"))]);
  106. yield "
  107. ";
  108. yield from [];
  109. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  110. // line 20
  111. yield " ";
  112. }
  113. // line 21
  114. yield "
  115. ";
  116. // line 22
  117. $context["request_status_code_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.', 22, $this->source); })()), "statuscode", [], "any", false, false, false, 22) >= 400)) ? ("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.', 22, $this->source); })()), "statuscode", [], "any", false, false, false, 22) >= 300)) ? ("yellow") : ("green"))));
  118. // line 23
  119. yield "
  120. ";
  121. // line 24
  122. $context["icon"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  123. // line 25
  124. yield " <span class=\"sf-toolbar-status sf-toolbar-status-";
  125. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["request_status_code_color"]) || array_key_exists("request_status_code_color", $context) ? $context["request_status_code_color"] : (function () { throw new RuntimeError('Variable "request_status_code_color" does not exist.', 25, $this->source); })()), "html", null, true);
  126. yield "\">";
  127. yield $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.', 25, $this->source); })()), "statuscode", [], "any", false, false, false, 25), "html", null, true);
  128. yield "</span>
  129. ";
  130. // line 26
  131. 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.', 26, $this->source); })()), "route", [], "any", false, false, false, 26)) {
  132. // line 27
  133. yield " ";
  134. 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.', 27, $this->source); })()), "redirect", [], "any", false, false, false, 27)) {
  135. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/redirect.svg");
  136. }
  137. // line 28
  138. yield " ";
  139. 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.', 28, $this->source); })()), "forwardtoken", [], "any", false, false, false, 28)) {
  140. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/forward.svg");
  141. }
  142. // line 29
  143. yield " <span class=\"sf-toolbar-label\">";
  144. yield ((("GET" != 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.', 29, $this->source); })()), "method", [], "any", false, false, false, 29))) ? ($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.', 29, $this->source); })()), "method", [], "any", false, false, false, 29), "html", null, true)) : (""));
  145. yield " @</span>
  146. <span class=\"sf-toolbar-value sf-toolbar-info-piece-additional\">";
  147. // line 30
  148. yield $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.', 30, $this->source); })()), "route", [], "any", false, false, false, 30), "html", null, true);
  149. yield "</span>
  150. ";
  151. }
  152. // line 32
  153. yield " ";
  154. yield from [];
  155. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  156. // line 33
  157. yield "
  158. ";
  159. // line 34
  160. $context["text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  161. // line 35
  162. yield " <div class=\"sf-toolbar-info-group\">
  163. <div class=\"sf-toolbar-info-piece\">
  164. <b>HTTP status</b>
  165. <span>";
  166. // line 38
  167. yield $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.', 38, $this->source); })()), "statuscode", [], "any", false, false, false, 38), "html", null, true);
  168. yield " ";
  169. yield $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.', 38, $this->source); })()), "statustext", [], "any", false, false, false, 38), "html", null, true);
  170. yield "</span>
  171. </div>
  172. ";
  173. // line 41
  174. if (("GET" != 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.', 41, $this->source); })()), "method", [], "any", false, false, false, 41))) {
  175. // line 42
  176. yield "<div class=\"sf-toolbar-info-piece\">
  177. <b>Method</b>
  178. <span>";
  179. // line 44
  180. yield $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.', 44, $this->source); })()), "method", [], "any", false, false, false, 44), "html", null, true);
  181. yield "</span>
  182. </div>";
  183. }
  184. // line 47
  185. yield "
  186. <div class=\"sf-toolbar-info-piece\">
  187. <b>Controller</b>
  188. <span>";
  189. // line 50
  190. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["request_handler"]) || array_key_exists("request_handler", $context) ? $context["request_handler"] : (function () { throw new RuntimeError('Variable "request_handler" does not exist.', 50, $this->source); })()), "html", null, true);
  191. yield "</span>
  192. </div>
  193. <div class=\"sf-toolbar-info-piece\">
  194. <b>Route name</b>
  195. <span>";
  196. // line 55
  197. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "route", [], "any", true, true, false, 55)) ? (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.', 55, $this->source); })()), "route", [], "any", false, false, false, 55), "n/a")) : ("n/a")), "html", null, true);
  198. yield "</span>
  199. </div>
  200. <div class=\"sf-toolbar-info-piece\">
  201. <b>Has session</b>
  202. <span>";
  203. // line 60
  204. if (Twig\Extension\CoreExtension::length($this->env->getCharset(), 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.', 60, $this->source); })()), "sessionmetadata", [], "any", false, false, false, 60))) {
  205. yield "yes";
  206. } else {
  207. yield "no";
  208. }
  209. yield "</span>
  210. </div>
  211. <div class=\"sf-toolbar-info-piece\">
  212. <b>Stateless Check</b>
  213. <span>";
  214. // line 65
  215. 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.', 65, $this->source); })()), "statelesscheck", [], "any", false, false, false, 65)) {
  216. yield "yes";
  217. } else {
  218. yield "no";
  219. }
  220. yield "</span>
  221. </div>
  222. </div>
  223. ";
  224. // line 69
  225. if (array_key_exists("redirect_handler", $context)) {
  226. // line 70
  227. yield "<div class=\"sf-toolbar-info-group\">
  228. <div class=\"sf-toolbar-info-piece\">
  229. <b>
  230. <span class=\"sf-toolbar-redirection-status sf-toolbar-status-yellow\">";
  231. // line 73
  232. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 73, $this->source); })()), "redirect", [], "any", false, false, false, 73), "status_code", [], "any", false, false, false, 73), "html", null, true);
  233. yield "</span>
  234. Redirect from
  235. </b>
  236. <span>
  237. ";
  238. // line 77
  239. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["redirect_handler"]) || array_key_exists("redirect_handler", $context) ? $context["redirect_handler"] : (function () { throw new RuntimeError('Variable "redirect_handler" does not exist.', 77, $this->source); })()), "html", null, true);
  240. yield "
  241. (<a href=\"";
  242. // line 78
  243. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", ["token" => CoreExtension::getAttribute($this->env, $this->source, 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); })()), "redirect", [], "any", false, false, false, 78), "token", [], "any", false, false, false, 78)]), "html", null, true);
  244. yield "\">";
  245. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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); })()), "redirect", [], "any", false, false, false, 78), "token", [], "any", false, false, false, 78), "html", null, true);
  246. yield "</a>)
  247. </span>
  248. </div>
  249. </div>
  250. ";
  251. }
  252. // line 83
  253. yield "
  254. ";
  255. // line 84
  256. if (array_key_exists("forward_handler", $context)) {
  257. // line 85
  258. yield " <div class=\"sf-toolbar-info-group\">
  259. <div class=\"sf-toolbar-info-piece\">
  260. <b>Forwarded to</b>
  261. <span>
  262. ";
  263. // line 89
  264. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["forward_handler"]) || array_key_exists("forward_handler", $context) ? $context["forward_handler"] : (function () { throw new RuntimeError('Variable "forward_handler" does not exist.', 89, $this->source); })()), "html", null, true);
  265. yield "
  266. (<a href=\"";
  267. // line 90
  268. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", ["token" => 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.', 90, $this->source); })()), "forwardtoken", [], "any", false, false, false, 90)]), "html", null, true);
  269. yield "\">";
  270. yield $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.', 90, $this->source); })()), "forwardtoken", [], "any", false, false, false, 90), "html", null, true);
  271. yield "</a>)
  272. </span>
  273. </div>
  274. </div>
  275. ";
  276. }
  277. // line 95
  278. yield " ";
  279. yield from [];
  280. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  281. // line 96
  282. yield "
  283. ";
  284. // line 97
  285. 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.', 97, $this->source); })())]);
  286. yield "
  287. ";
  288. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  289. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  290. yield from [];
  291. }
  292. // line 100
  293. /**
  294. * @return iterable<null|scalar|\Stringable>
  295. */
  296. public function block_menu(array $context, array $blocks = []): iterable
  297. {
  298. $macros = $this->macros;
  299. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  300. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  301. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  302. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  303. // line 101
  304. yield " <span class=\"label\">
  305. <span class=\"icon\">";
  306. // line 102
  307. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/request.svg");
  308. yield "</span>
  309. <strong>Request / Response</strong>
  310. </span>
  311. ";
  312. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  313. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  314. yield from [];
  315. }
  316. // line 107
  317. /**
  318. * @return iterable<null|scalar|\Stringable>
  319. */
  320. public function block_panel(array $context, array $blocks = []): iterable
  321. {
  322. $macros = $this->macros;
  323. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  324. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  325. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  326. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  327. // line 108
  328. yield " ";
  329. $macros["helper"] = $this;
  330. // line 109
  331. yield "
  332. <h2>
  333. ";
  334. // line 111
  335. yield $macros["helper"]->getTemplateForMacro("macro_set_handler", $context, 111, $this->getSourceContext())->macro_set_handler(...[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.', 111, $this->source); })()), "controller", [], "any", false, false, false, 111)]);
  336. yield "
  337. </h2>
  338. <div class=\"sf-tabs\">
  339. <div class=\"tab\">
  340. <h3 class=\"tab-title\">Request</h3>
  341. <div class=\"tab-content\">
  342. <h3>GET Parameters</h3>
  343. ";
  344. // line 121
  345. if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 121, $this->source); })()), "requestquery", [], "any", false, false, false, 121), "all", [], "any", false, false, false, 121))) {
  346. // line 122
  347. yield " <div class=\"empty\">
  348. <p>No GET parameters</p>
  349. </div>
  350. ";
  351. } else {
  352. // line 126
  353. yield " ";
  354. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => 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.', 126, $this->source); })()), "requestquery", [], "any", false, false, false, 126), "maxDepth" => 1], false);
  355. yield "
  356. ";
  357. }
  358. // line 128
  359. yield "
  360. <h3>POST Parameters</h3>
  361. ";
  362. // line 131
  363. if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 131, $this->source); })()), "requestrequest", [], "any", false, false, false, 131), "all", [], "any", false, false, false, 131))) {
  364. // line 132
  365. yield " <div class=\"empty\">
  366. <p>No POST parameters</p>
  367. </div>
  368. ";
  369. } else {
  370. // line 136
  371. yield " ";
  372. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => 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.', 136, $this->source); })()), "requestrequest", [], "any", false, false, false, 136), "maxDepth" => 1], false);
  373. yield "
  374. ";
  375. }
  376. // line 138
  377. yield "
  378. <h4>Uploaded Files</h4>
  379. ";
  380. // line 141
  381. 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.', 141, $this->source); })()), "requestfiles", [], "any", false, false, false, 141))) {
  382. // line 142
  383. yield " <div class=\"empty\">
  384. <p>No files were uploaded</p>
  385. </div>
  386. ";
  387. } else {
  388. // line 146
  389. yield " ";
  390. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => 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.', 146, $this->source); })()), "requestfiles", [], "any", false, false, false, 146), "maxDepth" => 1], false);
  391. yield "
  392. ";
  393. }
  394. // line 148
  395. yield "
  396. <h3>Request Attributes</h3>
  397. ";
  398. // line 151
  399. if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 151, $this->source); })()), "requestattributes", [], "any", false, false, false, 151), "all", [], "any", false, false, false, 151))) {
  400. // line 152
  401. yield " <div class=\"empty\">
  402. <p>No attributes</p>
  403. </div>
  404. ";
  405. } else {
  406. // line 156
  407. yield " ";
  408. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => 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.', 156, $this->source); })()), "requestattributes", [], "any", false, false, false, 156)], false);
  409. yield "
  410. ";
  411. }
  412. // line 158
  413. yield "
  414. <h3>Request Headers</h3>
  415. ";
  416. // line 160
  417. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => 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.', 160, $this->source); })()), "requestheaders", [], "any", false, false, false, 160), "labels" => ["Header", "Value"], "maxDepth" => 1], false);
  418. yield "
  419. <h3>Request Content</h3>
  420. ";
  421. // line 164
  422. 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.', 164, $this->source); })()), "content", [], "any", false, false, false, 164) == false)) {
  423. // line 165
  424. yield " <div class=\"empty\">
  425. <p>Request content not available (it was retrieved as a resource).</p>
  426. </div>
  427. ";
  428. } elseif (CoreExtension::getAttribute($this->env, $this->source, // line 168
  429. (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 168, $this->source); })()), "content", [], "any", false, false, false, 168)) {
  430. // line 169
  431. yield " <div class=\"sf-tabs\">
  432. ";
  433. // line 170
  434. $context["prettyJson"] = ((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.', 170, $this->source); })()), "isJsonRequest", [], "any", false, false, false, 170)) ? (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.', 170, $this->source); })()), "prettyJson", [], "any", false, false, false, 170)) : (null));
  435. // line 171
  436. yield " ";
  437. if ( !(null === (isset($context["prettyJson"]) || array_key_exists("prettyJson", $context) ? $context["prettyJson"] : (function () { throw new RuntimeError('Variable "prettyJson" does not exist.', 171, $this->source); })()))) {
  438. // line 172
  439. yield " <div class=\"tab\">
  440. <h3 class=\"tab-title\">Pretty</h3>
  441. <div class=\"tab-content\">
  442. <div class=\"card\" style=\"max-height: 500px; overflow-y: auto;\">
  443. <pre class=\"break-long-words\">";
  444. // line 176
  445. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prettyJson"]) || array_key_exists("prettyJson", $context) ? $context["prettyJson"] : (function () { throw new RuntimeError('Variable "prettyJson" does not exist.', 176, $this->source); })()), "html", null, true);
  446. yield "</pre>
  447. </div>
  448. </div>
  449. </div>
  450. ";
  451. }
  452. // line 181
  453. yield "
  454. <div class=\"tab\">
  455. <h3 class=\"tab-title\">Raw</h3>
  456. <div class=\"tab-content\">
  457. <div class=\"card\">
  458. <pre class=\"break-long-words\">";
  459. // line 186
  460. yield $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.', 186, $this->source); })()), "content", [], "any", false, false, false, 186), "html", null, true);
  461. yield "</pre>
  462. </div>
  463. </div>
  464. </div>
  465. </div>
  466. ";
  467. } else {
  468. // line 192
  469. yield " <div class=\"empty\">
  470. <p>No content</p>
  471. </div>
  472. ";
  473. }
  474. // line 196
  475. yield " </div>
  476. </div>
  477. <div class=\"tab\">
  478. <h3 class=\"tab-title\">Response</h3>
  479. <div class=\"tab-content\">
  480. <h3>Response Headers</h3>
  481. ";
  482. // line 205
  483. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => 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.', 205, $this->source); })()), "responseheaders", [], "any", false, false, false, 205), "labels" => ["Header", "Value"], "maxDepth" => 1], false);
  484. yield "
  485. </div>
  486. </div>
  487. <div class=\"tab ";
  488. // line 209
  489. yield (((Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 209, $this->source); })()), "requestcookies", [], "any", false, false, false, 209), "all", [], "any", false, false, false, 209)) && Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 209, $this->source); })()), "responsecookies", [], "any", false, false, false, 209), "all", [], "any", false, false, false, 209)))) ? ("disabled") : (""));
  490. yield "\">
  491. <h3 class=\"tab-title\">Cookies</h3>
  492. <div class=\"tab-content\">
  493. <h3>Request Cookies</h3>
  494. ";
  495. // line 215
  496. if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 215, $this->source); })()), "requestcookies", [], "any", false, false, false, 215), "all", [], "any", false, false, false, 215))) {
  497. // line 216
  498. yield " <div class=\"empty\">
  499. <p>No request cookies</p>
  500. </div>
  501. ";
  502. } else {
  503. // line 220
  504. yield " ";
  505. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => 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.', 220, $this->source); })()), "requestcookies", [], "any", false, false, false, 220)], false);
  506. yield "
  507. ";
  508. }
  509. // line 222
  510. yield "
  511. <h3>Response Cookies</h3>
  512. ";
  513. // line 225
  514. if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 225, $this->source); })()), "responsecookies", [], "any", false, false, false, 225), "all", [], "any", false, false, false, 225))) {
  515. // line 226
  516. yield " <div class=\"empty\">
  517. <p>No response cookies</p>
  518. </div>
  519. ";
  520. } else {
  521. // line 230
  522. yield " ";
  523. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => 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.', 230, $this->source); })()), "responsecookies", [], "any", false, false, false, 230)], true);
  524. yield "
  525. ";
  526. }
  527. // line 232
  528. yield " </div>
  529. </div>
  530. <div class=\"tab ";
  531. // line 235
  532. 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.', 235, $this->source); })()), "sessionmetadata", [], "any", false, false, false, 235))) ? ("disabled") : (""));
  533. yield "\">
  534. <h3 class=\"tab-title\">Session";
  535. // line 236
  536. 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.', 236, $this->source); })()), "sessionusages", [], "any", false, false, false, 236))) {
  537. yield " <span class=\"badge\">";
  538. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), 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.', 236, $this->source); })()), "sessionusages", [], "any", false, false, false, 236)), "html", null, true);
  539. yield "</span>";
  540. }
  541. yield "</h3>
  542. <div class=\"tab-content\">
  543. <h3>Session Metadata</h3>
  544. ";
  545. // line 241
  546. 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.', 241, $this->source); })()), "sessionmetadata", [], "any", false, false, false, 241))) {
  547. // line 242
  548. yield " <div class=\"empty\">
  549. <p>No session metadata</p>
  550. </div>
  551. ";
  552. } else {
  553. // line 246
  554. yield " ";
  555. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/table.html.twig", ["data" => 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.', 246, $this->source); })()), "sessionmetadata", [], "any", false, false, false, 246)], false);
  556. yield "
  557. ";
  558. }
  559. // line 248
  560. yield "
  561. <h3>Session Attributes</h3>
  562. ";
  563. // line 251
  564. 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.', 251, $this->source); })()), "sessionattributes", [], "any", false, false, false, 251))) {
  565. // line 252
  566. yield " <div class=\"empty\">
  567. <p>No session attributes</p>
  568. </div>
  569. ";
  570. } else {
  571. // line 256
  572. yield " ";
  573. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/table.html.twig", ["data" => 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.', 256, $this->source); })()), "sessionattributes", [], "any", false, false, false, 256), "labels" => ["Attribute", "Value"]], false);
  574. yield "
  575. ";
  576. }
  577. // line 258
  578. yield "
  579. <h3>Session Usage</h3>
  580. <div class=\"metrics\">
  581. <div class=\"metric\">
  582. <span class=\"value\">";
  583. // line 263
  584. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), 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.', 263, $this->source); })()), "sessionusages", [], "any", false, false, false, 263)), "html", null, true);
  585. yield "</span>
  586. <span class=\"label\">Usages</span>
  587. </div>
  588. <div class=\"metric\">
  589. <span class=\"value\">";
  590. // line 268
  591. yield Twig\Extension\CoreExtension::include($this->env, $context, (("@WebProfiler/Icon/" . ((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.', 268, $this->source); })()), "statelesscheck", [], "any", false, false, false, 268)) ? ("yes") : ("no"))) . ".svg"));
  592. yield "</span>
  593. <span class=\"label\">Stateless check enabled</span>
  594. </div>
  595. </div>
  596. ";
  597. // line 273
  598. 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.', 273, $this->source); })()), "sessionusages", [], "any", false, false, false, 273))) {
  599. // line 274
  600. yield " <div class=\"empty\">
  601. <p>Session not used.</p>
  602. </div>
  603. ";
  604. } else {
  605. // line 278
  606. yield " <table class=\"session_usages\">
  607. <thead>
  608. <tr>
  609. <th class=\"full-width\">Usage</th>
  610. </tr>
  611. </thead>
  612. <tbody>
  613. ";
  614. // line 286
  615. $context['_parent'] = $context;
  616. $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.', 286, $this->source); })()), "sessionusages", [], "any", false, false, false, 286));
  617. foreach ($context['_seq'] as $context["key"] => $context["usage"]) {
  618. // line 287
  619. yield " <tr>
  620. <td class=\"font-normal\">";
  621. // line 289
  622. $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(CoreExtension::getAttribute($this->env, $this->source, $context["usage"], "file", [], "any", false, false, false, 289), CoreExtension::getAttribute($this->env, $this->source, $context["usage"], "line", [], "any", false, false, false, 289));
  623. // line 290
  624. if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 290, $this->source); })())) {
  625. yield "<a href=\"";
  626. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 290, $this->source); })()), "html", null, true);
  627. yield "\" title=\"";
  628. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["usage"], "name", [], "any", false, false, false, 290), "html", null, true);
  629. yield "\">";
  630. } else {
  631. yield "<span title=\"";
  632. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["usage"], "name", [], "any", false, false, false, 290), "html", null, true);
  633. yield "\">";
  634. }
  635. // line 291
  636. yield " ";
  637. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["usage"], "name", [], "any", false, false, false, 291), "html", null, true);
  638. // line 292
  639. if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 292, $this->source); })())) {
  640. yield "</a>";
  641. } else {
  642. yield "</span>";
  643. }
  644. // line 293
  645. yield " <div class=\"text-small font-normal\">
  646. ";
  647. // line 294
  648. $context["usage_id"] = ("session-usage-trace-" . $context["key"]);
  649. // line 295
  650. yield " <a class=\"btn btn-link text-small sf-toggle\" data-toggle-selector=\"#";
  651. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["usage_id"]) || array_key_exists("usage_id", $context) ? $context["usage_id"] : (function () { throw new RuntimeError('Variable "usage_id" does not exist.', 295, $this->source); })()), "html", null, true);
  652. yield "\" data-toggle-alt-content=\"Hide trace\">Show trace</a>
  653. </div>
  654. <div id=\"";
  655. // line 297
  656. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["usage_id"]) || array_key_exists("usage_id", $context) ? $context["usage_id"] : (function () { throw new RuntimeError('Variable "usage_id" does not exist.', 297, $this->source); })()), "html", null, true);
  657. yield "\" class=\"context sf-toggle-content sf-toggle-hidden\">
  658. ";
  659. // line 298
  660. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["usage"], "trace", [], "any", false, false, false, 298), 2);
  661. yield "
  662. </div>
  663. </td>
  664. </tr>
  665. ";
  666. }
  667. $_parent = $context['_parent'];
  668. unset($context['_seq'], $context['key'], $context['usage'], $context['_parent']);
  669. $context = array_intersect_key($context, $_parent) + $_parent;
  670. // line 303
  671. yield " </tbody>
  672. </table>
  673. ";
  674. }
  675. // line 306
  676. yield " </div>
  677. </div>
  678. <div class=\"tab ";
  679. // line 309
  680. 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.', 309, $this->source); })()), "flashes", [], "any", false, false, false, 309))) ? ("disabled") : (""));
  681. yield "\">
  682. <h3 class=\"tab-title\">Flashes</h3>
  683. <div class=\"tab-content\">
  684. <h3>Flashes</h3>
  685. ";
  686. // line 315
  687. 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.', 315, $this->source); })()), "flashes", [], "any", false, false, false, 315))) {
  688. // line 316
  689. yield " <div class=\"empty\">
  690. <p>No flash messages were created.</p>
  691. </div>
  692. ";
  693. } else {
  694. // line 320
  695. yield " ";
  696. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/table.html.twig", ["data" => 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.', 320, $this->source); })()), "flashes", [], "any", false, false, false, 320)], false);
  697. yield "
  698. ";
  699. }
  700. // line 322
  701. yield " </div>
  702. </div>
  703. <div class=\"tab\">
  704. <h3 class=\"tab-title\">Server Parameters</h3>
  705. <div class=\"tab-content\">
  706. <h3>Server Parameters</h3>
  707. <h4>Defined in .env</h4>
  708. ";
  709. // line 330
  710. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => 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.', 330, $this->source); })()), "dotenvvars", [], "any", false, false, false, 330)], false);
  711. yield "
  712. <h4>Defined as regular env variables</h4>
  713. ";
  714. // line 333
  715. $context["requestserver"] = [];
  716. // line 334
  717. yield " ";
  718. $context['_parent'] = $context;
  719. $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::filter($this->env, 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.', 334, $this->source); })()), "requestserver", [], "any", false, false, false, 334), function ($_____, $__key__) use ($context, $macros) { $context["_"] = $_____; $context["key"] = $__key__; return !CoreExtension::inFilter($context["key"], CoreExtension::getAttribute($this->env, $this->source, 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.', 334, $this->source); })()), "dotenvvars", [], "any", false, false, false, 334), "keys", [], "any", false, false, false, 334)); }));
  720. foreach ($context['_seq'] as $context["key"] => $context["value"]) {
  721. // line 335
  722. yield " ";
  723. $context["requestserver"] = Twig\Extension\CoreExtension::merge((isset($context["requestserver"]) || array_key_exists("requestserver", $context) ? $context["requestserver"] : (function () { throw new RuntimeError('Variable "requestserver" does not exist.', 335, $this->source); })()), [ (string)$context["key"] => $context["value"]]);
  724. // line 336
  725. yield " ";
  726. }
  727. $_parent = $context['_parent'];
  728. unset($context['_seq'], $context['key'], $context['value'], $context['_parent']);
  729. $context = array_intersect_key($context, $_parent) + $_parent;
  730. // line 337
  731. yield " ";
  732. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/table.html.twig", ["data" => (isset($context["requestserver"]) || array_key_exists("requestserver", $context) ? $context["requestserver"] : (function () { throw new RuntimeError('Variable "requestserver" does not exist.', 337, $this->source); })())], false);
  733. yield "
  734. </div>
  735. </div>
  736. ";
  737. // line 341
  738. if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 341, $this->source); })()), "parent", [], "any", false, false, false, 341)) {
  739. // line 342
  740. yield " <div class=\"tab\">
  741. <h3 class=\"tab-title\">Parent Request</h3>
  742. <div class=\"tab-content\">
  743. <h3>
  744. <a href=\"";
  745. // line 347
  746. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", ["token" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 347, $this->source); })()), "parent", [], "any", false, false, false, 347), "token", [], "any", false, false, false, 347)]), "html", null, true);
  747. yield "\">Return to parent request</a>
  748. <small>(token = ";
  749. // line 348
  750. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 348, $this->source); })()), "parent", [], "any", false, false, false, 348), "token", [], "any", false, false, false, 348), "html", null, true);
  751. yield ")</small>
  752. </h3>
  753. ";
  754. // line 351
  755. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 351, $this->source); })()), "parent", [], "any", false, false, false, 351), "getcollector", ["request"], "method", false, false, false, 351), "requestattributes", [], "any", false, false, false, 351)], false);
  756. yield "
  757. </div>
  758. </div>
  759. ";
  760. }
  761. // line 355
  762. yield "
  763. ";
  764. // line 356
  765. if (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 356, $this->source); })()), "children", [], "any", false, false, false, 356))) {
  766. // line 357
  767. yield " <div class=\"tab\">
  768. <h3 class=\"tab-title\">Sub Requests <span class=\"badge\">";
  769. // line 358
  770. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 358, $this->source); })()), "children", [], "any", false, false, false, 358)), "html", null, true);
  771. yield "</span></h3>
  772. <div class=\"tab-content\">
  773. ";
  774. // line 361
  775. $context['_parent'] = $context;
  776. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 361, $this->source); })()), "children", [], "any", false, false, false, 361));
  777. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  778. // line 362
  779. yield " <h3>
  780. ";
  781. // line 363
  782. yield $macros["helper"]->getTemplateForMacro("macro_set_handler", $context, 363, $this->getSourceContext())->macro_set_handler(...[CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "getcollector", ["request"], "method", false, false, false, 363), "controller", [], "any", false, false, false, 363)]);
  783. yield "
  784. <small>(token = <a href=\"";
  785. // line 364
  786. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", ["token" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "token", [], "any", false, false, false, 364)]), "html", null, true);
  787. yield "\">";
  788. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "token", [], "any", false, false, false, 364), "html", null, true);
  789. yield "</a>)</small>
  790. </h3>
  791. ";
  792. // line 367
  793. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "getcollector", ["request"], "method", false, false, false, 367), "requestattributes", [], "any", false, false, false, 367)], false);
  794. yield "
  795. ";
  796. }
  797. $_parent = $context['_parent'];
  798. unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']);
  799. $context = array_intersect_key($context, $_parent) + $_parent;
  800. // line 369
  801. yield " </div>
  802. </div>
  803. ";
  804. }
  805. // line 372
  806. yield " </div>
  807. ";
  808. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  809. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  810. yield from [];
  811. }
  812. // line 375
  813. public function macro_set_handler($controller = null, $route = null, $method = null, ...$varargs): string|Markup
  814. {
  815. $macros = $this->macros;
  816. $context = [
  817. "controller" => $controller,
  818. "route" => $route,
  819. "method" => $method,
  820. "varargs" => $varargs,
  821. ] + $this->env->getGlobals();
  822. $blocks = [];
  823. return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  824. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  825. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "set_handler"));
  826. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  827. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "set_handler"));
  828. // line 376
  829. yield " ";
  830. if (CoreExtension::getAttribute($this->env, $this->source, ($context["controller"] ?? null), "class", [], "any", true, true, false, 376)) {
  831. // line 377
  832. if (((array_key_exists("method", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 377, $this->source); })()), false)) : (false))) {
  833. yield "<span class=\"sf-toolbar-status sf-toolbar-redirection-method\">";
  834. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new RuntimeError('Variable "method" does not exist.', 377, $this->source); })()), "html", null, true);
  835. yield "</span>";
  836. }
  837. // line 378
  838. $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(CoreExtension::getAttribute($this->env, $this->source, (isset($context["controller"]) || array_key_exists("controller", $context) ? $context["controller"] : (function () { throw new RuntimeError('Variable "controller" does not exist.', 378, $this->source); })()), "file", [], "any", false, false, false, 378), CoreExtension::getAttribute($this->env, $this->source, (isset($context["controller"]) || array_key_exists("controller", $context) ? $context["controller"] : (function () { throw new RuntimeError('Variable "controller" does not exist.', 378, $this->source); })()), "line", [], "any", false, false, false, 378));
  839. // line 379
  840. if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 379, $this->source); })())) {
  841. yield "<a href=\"";
  842. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 379, $this->source); })()), "html", null, true);
  843. yield "\" title=\"";
  844. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["controller"]) || array_key_exists("controller", $context) ? $context["controller"] : (function () { throw new RuntimeError('Variable "controller" does not exist.', 379, $this->source); })()), "class", [], "any", false, false, false, 379), "html", null, true);
  845. yield "\">";
  846. } else {
  847. yield "<span title=\"";
  848. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["controller"]) || array_key_exists("controller", $context) ? $context["controller"] : (function () { throw new RuntimeError('Variable "controller" does not exist.', 379, $this->source); })()), "class", [], "any", false, false, false, 379), "html", null, true);
  849. yield "\">";
  850. }
  851. // line 381
  852. if (((array_key_exists("route", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["route"]) || array_key_exists("route", $context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.', 381, $this->source); })()), false)) : (false))) {
  853. // line 382
  854. yield "@";
  855. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["route"]) || array_key_exists("route", $context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.', 382, $this->source); })()), "html", null, true);
  856. } else {
  857. // line 384
  858. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->abbrClass($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["controller"]) || array_key_exists("controller", $context) ? $context["controller"] : (function () { throw new RuntimeError('Variable "controller" does not exist.', 384, $this->source); })()), "class", [], "any", false, false, false, 384), "html", null, true))), "html", null, true);
  859. // line 385
  860. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["controller"]) || array_key_exists("controller", $context) ? $context["controller"] : (function () { throw new RuntimeError('Variable "controller" does not exist.', 385, $this->source); })()), "method", [], "any", false, false, false, 385)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((" :: " . CoreExtension::getAttribute($this->env, $this->source, (isset($context["controller"]) || array_key_exists("controller", $context) ? $context["controller"] : (function () { throw new RuntimeError('Variable "controller" does not exist.', 385, $this->source); })()), "method", [], "any", false, false, false, 385)), "html", null, true)) : (""));
  861. }
  862. // line 388
  863. if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 388, $this->source); })())) {
  864. yield "</a>";
  865. } else {
  866. yield "</span>";
  867. }
  868. } else {
  869. // line 390
  870. yield "<span>";
  871. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("route", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["route"]) || array_key_exists("route", $context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.', 390, $this->source); })()), (isset($context["controller"]) || array_key_exists("controller", $context) ? $context["controller"] : (function () { throw new RuntimeError('Variable "controller" does not exist.', 390, $this->source); })()))) : ((isset($context["controller"]) || array_key_exists("controller", $context) ? $context["controller"] : (function () { throw new RuntimeError('Variable "controller" does not exist.', 390, $this->source); })()))), "html", null, true);
  872. yield "</span>";
  873. }
  874. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  875. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  876. yield from [];
  877. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  878. }
  879. /**
  880. * @codeCoverageIgnore
  881. */
  882. public function getTemplateName(): string
  883. {
  884. return "@WebProfiler/Collector/request.html.twig";
  885. }
  886. /**
  887. * @codeCoverageIgnore
  888. */
  889. public function isTraitable(): bool
  890. {
  891. return false;
  892. }
  893. /**
  894. * @codeCoverageIgnore
  895. */
  896. public function getDebugInfo(): array
  897. {
  898. return array ( 947 => 390, 940 => 388, 937 => 385, 935 => 384, 931 => 382, 929 => 381, 917 => 379, 915 => 378, 909 => 377, 906 => 376, 886 => 375, 874 => 372, 869 => 369, 861 => 367, 853 => 364, 849 => 363, 846 => 362, 842 => 361, 836 => 358, 833 => 357, 831 => 356, 828 => 355, 821 => 351, 815 => 348, 811 => 347, 804 => 342, 802 => 341, 794 => 337, 788 => 336, 785 => 335, 780 => 334, 778 => 333, 772 => 330, 762 => 322, 756 => 320, 750 => 316, 748 => 315, 739 => 309, 734 => 306, 729 => 303, 718 => 298, 714 => 297, 708 => 295, 706 => 294, 703 => 293, 697 => 292, 694 => 291, 682 => 290, 680 => 289, 677 => 287, 673 => 286, 663 => 278, 657 => 274, 655 => 273, 647 => 268, 639 => 263, 632 => 258, 626 => 256, 620 => 252, 618 => 251, 613 => 248, 607 => 246, 601 => 242, 599 => 241, 587 => 236, 583 => 235, 578 => 232, 572 => 230, 566 => 226, 564 => 225, 559 => 222, 553 => 220, 547 => 216, 545 => 215, 536 => 209, 529 => 205, 518 => 196, 512 => 192, 503 => 186, 496 => 181, 488 => 176, 482 => 172, 479 => 171, 477 => 170, 474 => 169, 472 => 168, 467 => 165, 465 => 164, 458 => 160, 454 => 158, 448 => 156, 442 => 152, 440 => 151, 435 => 148, 429 => 146, 423 => 142, 421 => 141, 416 => 138, 410 => 136, 404 => 132, 402 => 131, 397 => 128, 391 => 126, 385 => 122, 383 => 121, 370 => 111, 366 => 109, 363 => 108, 350 => 107, 335 => 102, 332 => 101, 319 => 100, 306 => 97, 303 => 96, 299 => 95, 289 => 90, 285 => 89, 279 => 85, 277 => 84, 274 => 83, 264 => 78, 260 => 77, 253 => 73, 248 => 70, 246 => 69, 235 => 65, 223 => 60, 215 => 55, 207 => 50, 202 => 47, 197 => 44, 193 => 42, 191 => 41, 183 => 38, 178 => 35, 176 => 34, 173 => 33, 169 => 32, 164 => 30, 159 => 29, 154 => 28, 149 => 27, 147 => 26, 140 => 25, 138 => 24, 135 => 23, 133 => 22, 130 => 21, 127 => 20, 120 => 18, 117 => 17, 114 => 16, 112 => 15, 109 => 14, 106 => 13, 99 => 11, 96 => 10, 94 => 9, 91 => 8, 84 => 6, 81 => 5, 78 => 4, 65 => 3, 42 => 1,);
  899. }
  900. public function getSourceContext(): Source
  901. {
  902. return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  903. {% block toolbar %}
  904. {% import _self as helper %}
  905. {% set request_handler %}
  906. {{ helper.set_handler(collector.controller) }}
  907. {% endset %}
  908. {% if collector.redirect %}
  909. {% set redirect_handler %}
  910. {{ helper.set_handler(collector.redirect.controller, collector.redirect.route, 'GET' != collector.redirect.method ? collector.redirect.method) }}
  911. {% endset %}
  912. {% endif %}
  913. {% if collector.forwardtoken %}
  914. {% set forward_profile = profile.childByToken(collector.forwardtoken) %}
  915. {% set forward_handler %}
  916. {{ helper.set_handler(forward_profile ? forward_profile.collector('request').controller : 'n/a') }}
  917. {% endset %}
  918. {% endif %}
  919. {% set request_status_code_color = (collector.statuscode >= 400) ? 'red' : (collector.statuscode >= 300) ? 'yellow' : 'green' %}
  920. {% set icon %}
  921. <span class=\"sf-toolbar-status sf-toolbar-status-{{ request_status_code_color }}\">{{ collector.statuscode }}</span>
  922. {% if collector.route %}
  923. {% if collector.redirect %}{{ include('@WebProfiler/Icon/redirect.svg') }}{% endif %}
  924. {% if collector.forwardtoken %}{{ include('@WebProfiler/Icon/forward.svg') }}{% endif %}
  925. <span class=\"sf-toolbar-label\">{{ 'GET' != collector.method ? collector.method }} @</span>
  926. <span class=\"sf-toolbar-value sf-toolbar-info-piece-additional\">{{ collector.route }}</span>
  927. {% endif %}
  928. {% endset %}
  929. {% set text %}
  930. <div class=\"sf-toolbar-info-group\">
  931. <div class=\"sf-toolbar-info-piece\">
  932. <b>HTTP status</b>
  933. <span>{{ collector.statuscode }} {{ collector.statustext }}</span>
  934. </div>
  935. {% if 'GET' != collector.method -%}
  936. <div class=\"sf-toolbar-info-piece\">
  937. <b>Method</b>
  938. <span>{{ collector.method }}</span>
  939. </div>
  940. {%- endif %}
  941. <div class=\"sf-toolbar-info-piece\">
  942. <b>Controller</b>
  943. <span>{{ request_handler }}</span>
  944. </div>
  945. <div class=\"sf-toolbar-info-piece\">
  946. <b>Route name</b>
  947. <span>{{ collector.route|default('n/a') }}</span>
  948. </div>
  949. <div class=\"sf-toolbar-info-piece\">
  950. <b>Has session</b>
  951. <span>{% if collector.sessionmetadata|length %}yes{% else %}no{% endif %}</span>
  952. </div>
  953. <div class=\"sf-toolbar-info-piece\">
  954. <b>Stateless Check</b>
  955. <span>{% if collector.statelesscheck %}yes{% else %}no{% endif %}</span>
  956. </div>
  957. </div>
  958. {% if redirect_handler is defined -%}
  959. <div class=\"sf-toolbar-info-group\">
  960. <div class=\"sf-toolbar-info-piece\">
  961. <b>
  962. <span class=\"sf-toolbar-redirection-status sf-toolbar-status-yellow\">{{ collector.redirect.status_code }}</span>
  963. Redirect from
  964. </b>
  965. <span>
  966. {{ redirect_handler }}
  967. (<a href=\"{{ path('_profiler', { token: collector.redirect.token }) }}\">{{ collector.redirect.token }}</a>)
  968. </span>
  969. </div>
  970. </div>
  971. {% endif %}
  972. {% if forward_handler is defined %}
  973. <div class=\"sf-toolbar-info-group\">
  974. <div class=\"sf-toolbar-info-piece\">
  975. <b>Forwarded to</b>
  976. <span>
  977. {{ forward_handler }}
  978. (<a href=\"{{ path('_profiler', { token: collector.forwardtoken }) }}\">{{ collector.forwardtoken }}</a>)
  979. </span>
  980. </div>
  981. </div>
  982. {% endif %}
  983. {% endset %}
  984. {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
  985. {% endblock %}
  986. {% block menu %}
  987. <span class=\"label\">
  988. <span class=\"icon\">{{ include('@WebProfiler/Icon/request.svg') }}</span>
  989. <strong>Request / Response</strong>
  990. </span>
  991. {% endblock %}
  992. {% block panel %}
  993. {% import _self as helper %}
  994. <h2>
  995. {{ helper.set_handler(collector.controller) }}
  996. </h2>
  997. <div class=\"sf-tabs\">
  998. <div class=\"tab\">
  999. <h3 class=\"tab-title\">Request</h3>
  1000. <div class=\"tab-content\">
  1001. <h3>GET Parameters</h3>
  1002. {% if collector.requestquery.all is empty %}
  1003. <div class=\"empty\">
  1004. <p>No GET parameters</p>
  1005. </div>
  1006. {% else %}
  1007. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestquery, maxDepth: 1 }, with_context = false) }}
  1008. {% endif %}
  1009. <h3>POST Parameters</h3>
  1010. {% if collector.requestrequest.all is empty %}
  1011. <div class=\"empty\">
  1012. <p>No POST parameters</p>
  1013. </div>
  1014. {% else %}
  1015. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestrequest, maxDepth: 1 }, with_context = false) }}
  1016. {% endif %}
  1017. <h4>Uploaded Files</h4>
  1018. {% if collector.requestfiles is empty %}
  1019. <div class=\"empty\">
  1020. <p>No files were uploaded</p>
  1021. </div>
  1022. {% else %}
  1023. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestfiles, maxDepth: 1 }, with_context = false) }}
  1024. {% endif %}
  1025. <h3>Request Attributes</h3>
  1026. {% if collector.requestattributes.all is empty %}
  1027. <div class=\"empty\">
  1028. <p>No attributes</p>
  1029. </div>
  1030. {% else %}
  1031. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestattributes }, with_context = false) }}
  1032. {% endif %}
  1033. <h3>Request Headers</h3>
  1034. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestheaders, labels: ['Header', 'Value'], maxDepth: 1 }, with_context = false) }}
  1035. <h3>Request Content</h3>
  1036. {% if collector.content == false %}
  1037. <div class=\"empty\">
  1038. <p>Request content not available (it was retrieved as a resource).</p>
  1039. </div>
  1040. {% elseif collector.content %}
  1041. <div class=\"sf-tabs\">
  1042. {% set prettyJson = collector.isJsonRequest ? collector.prettyJson : null %}
  1043. {% if prettyJson is not null %}
  1044. <div class=\"tab\">
  1045. <h3 class=\"tab-title\">Pretty</h3>
  1046. <div class=\"tab-content\">
  1047. <div class=\"card\" style=\"max-height: 500px; overflow-y: auto;\">
  1048. <pre class=\"break-long-words\">{{ prettyJson }}</pre>
  1049. </div>
  1050. </div>
  1051. </div>
  1052. {% endif %}
  1053. <div class=\"tab\">
  1054. <h3 class=\"tab-title\">Raw</h3>
  1055. <div class=\"tab-content\">
  1056. <div class=\"card\">
  1057. <pre class=\"break-long-words\">{{ collector.content }}</pre>
  1058. </div>
  1059. </div>
  1060. </div>
  1061. </div>
  1062. {% else %}
  1063. <div class=\"empty\">
  1064. <p>No content</p>
  1065. </div>
  1066. {% endif %}
  1067. </div>
  1068. </div>
  1069. <div class=\"tab\">
  1070. <h3 class=\"tab-title\">Response</h3>
  1071. <div class=\"tab-content\">
  1072. <h3>Response Headers</h3>
  1073. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.responseheaders, labels: ['Header', 'Value'], maxDepth: 1 }, with_context = false) }}
  1074. </div>
  1075. </div>
  1076. <div class=\"tab {{ collector.requestcookies.all is empty and collector.responsecookies.all is empty ? 'disabled' }}\">
  1077. <h3 class=\"tab-title\">Cookies</h3>
  1078. <div class=\"tab-content\">
  1079. <h3>Request Cookies</h3>
  1080. {% if collector.requestcookies.all is empty %}
  1081. <div class=\"empty\">
  1082. <p>No request cookies</p>
  1083. </div>
  1084. {% else %}
  1085. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestcookies }, with_context = false) }}
  1086. {% endif %}
  1087. <h3>Response Cookies</h3>
  1088. {% if collector.responsecookies.all is empty %}
  1089. <div class=\"empty\">
  1090. <p>No response cookies</p>
  1091. </div>
  1092. {% else %}
  1093. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.responsecookies }, with_context = true) }}
  1094. {% endif %}
  1095. </div>
  1096. </div>
  1097. <div class=\"tab {{ collector.sessionmetadata is empty ? 'disabled' }}\">
  1098. <h3 class=\"tab-title\">Session{% if collector.sessionusages is not empty %} <span class=\"badge\">{{ collector.sessionusages|length }}</span>{% endif %}</h3>
  1099. <div class=\"tab-content\">
  1100. <h3>Session Metadata</h3>
  1101. {% if collector.sessionmetadata is empty %}
  1102. <div class=\"empty\">
  1103. <p>No session metadata</p>
  1104. </div>
  1105. {% else %}
  1106. {{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.sessionmetadata }, with_context = false) }}
  1107. {% endif %}
  1108. <h3>Session Attributes</h3>
  1109. {% if collector.sessionattributes is empty %}
  1110. <div class=\"empty\">
  1111. <p>No session attributes</p>
  1112. </div>
  1113. {% else %}
  1114. {{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.sessionattributes, labels: ['Attribute', 'Value'] }, with_context = false) }}
  1115. {% endif %}
  1116. <h3>Session Usage</h3>
  1117. <div class=\"metrics\">
  1118. <div class=\"metric\">
  1119. <span class=\"value\">{{ collector.sessionusages|length }}</span>
  1120. <span class=\"label\">Usages</span>
  1121. </div>
  1122. <div class=\"metric\">
  1123. <span class=\"value\">{{ include('@WebProfiler/Icon/' ~ (collector.statelesscheck ? 'yes' : 'no') ~ '.svg') }}</span>
  1124. <span class=\"label\">Stateless check enabled</span>
  1125. </div>
  1126. </div>
  1127. {% if collector.sessionusages is empty %}
  1128. <div class=\"empty\">
  1129. <p>Session not used.</p>
  1130. </div>
  1131. {% else %}
  1132. <table class=\"session_usages\">
  1133. <thead>
  1134. <tr>
  1135. <th class=\"full-width\">Usage</th>
  1136. </tr>
  1137. </thead>
  1138. <tbody>
  1139. {% for key, usage in collector.sessionusages %}
  1140. <tr>
  1141. <td class=\"font-normal\">
  1142. {%- set link = usage.file|file_link(usage.line) %}
  1143. {%- if link %}<a href=\"{{ link }}\" title=\"{{ usage.name }}\">{% else %}<span title=\"{{ usage.name }}\">{% endif %}
  1144. {{ usage.name }}
  1145. {%- if link %}</a>{% else %}</span>{% endif %}
  1146. <div class=\"text-small font-normal\">
  1147. {% set usage_id = 'session-usage-trace-' ~ key %}
  1148. <a class=\"btn btn-link text-small sf-toggle\" data-toggle-selector=\"#{{ usage_id }}\" data-toggle-alt-content=\"Hide trace\">Show trace</a>
  1149. </div>
  1150. <div id=\"{{ usage_id }}\" class=\"context sf-toggle-content sf-toggle-hidden\">
  1151. {{ profiler_dump(usage.trace, maxDepth=2) }}
  1152. </div>
  1153. </td>
  1154. </tr>
  1155. {% endfor %}
  1156. </tbody>
  1157. </table>
  1158. {% endif %}
  1159. </div>
  1160. </div>
  1161. <div class=\"tab {{ collector.flashes is empty ? 'disabled' }}\">
  1162. <h3 class=\"tab-title\">Flashes</h3>
  1163. <div class=\"tab-content\">
  1164. <h3>Flashes</h3>
  1165. {% if collector.flashes is empty %}
  1166. <div class=\"empty\">
  1167. <p>No flash messages were created.</p>
  1168. </div>
  1169. {% else %}
  1170. {{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.flashes }, with_context = false) }}
  1171. {% endif %}
  1172. </div>
  1173. </div>
  1174. <div class=\"tab\">
  1175. <h3 class=\"tab-title\">Server Parameters</h3>
  1176. <div class=\"tab-content\">
  1177. <h3>Server Parameters</h3>
  1178. <h4>Defined in .env</h4>
  1179. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.dotenvvars }, with_context = false) }}
  1180. <h4>Defined as regular env variables</h4>
  1181. {% set requestserver = [] %}
  1182. {% for key, value in collector.requestserver|filter((_, key) => key not in collector.dotenvvars.keys) %}
  1183. {% set requestserver = requestserver|merge({(key): value}) %}
  1184. {% endfor %}
  1185. {{ include('@WebProfiler/Profiler/table.html.twig', { data: requestserver }, with_context = false) }}
  1186. </div>
  1187. </div>
  1188. {% if profile.parent %}
  1189. <div class=\"tab\">
  1190. <h3 class=\"tab-title\">Parent Request</h3>
  1191. <div class=\"tab-content\">
  1192. <h3>
  1193. <a href=\"{{ path('_profiler', { token: profile.parent.token }) }}\">Return to parent request</a>
  1194. <small>(token = {{ profile.parent.token }})</small>
  1195. </h3>
  1196. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: profile.parent.getcollector('request').requestattributes }, with_context = false) }}
  1197. </div>
  1198. </div>
  1199. {% endif %}
  1200. {% if profile.children|length %}
  1201. <div class=\"tab\">
  1202. <h3 class=\"tab-title\">Sub Requests <span class=\"badge\">{{ profile.children|length }}</span></h3>
  1203. <div class=\"tab-content\">
  1204. {% for child in profile.children %}
  1205. <h3>
  1206. {{ helper.set_handler(child.getcollector('request').controller) }}
  1207. <small>(token = <a href=\"{{ path('_profiler', { token: child.token }) }}\">{{ child.token }}</a>)</small>
  1208. </h3>
  1209. {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: child.getcollector('request').requestattributes }, with_context = false) }}
  1210. {% endfor %}
  1211. </div>
  1212. </div>
  1213. {% endif %}
  1214. </div>
  1215. {% endblock %}
  1216. {% macro set_handler(controller, route, method) %}
  1217. {% if controller.class is defined -%}
  1218. {%- if method|default(false) %}<span class=\"sf-toolbar-status sf-toolbar-redirection-method\">{{ method }}</span>{% endif -%}
  1219. {%- set link = controller.file|file_link(controller.line) %}
  1220. {%- if link %}<a href=\"{{ link }}\" title=\"{{ controller.class }}\">{% else %}<span title=\"{{ controller.class }}\">{% endif %}
  1221. {%- if route|default(false) -%}
  1222. @{{ route }}
  1223. {%- else -%}
  1224. {{- controller.class|abbr_class|striptags -}}
  1225. {{- controller.method ? ' :: ' ~ controller.method -}}
  1226. {%- endif -%}
  1227. {%- if link %}</a>{% else %}</span>{% endif %}
  1228. {%- else -%}
  1229. <span>{{ route|default(controller) }}</span>
  1230. {%- endif %}
  1231. {% endmacro %}
  1232. ", "@WebProfiler/Collector/request.html.twig", "/Volumes/madi/opt/madi/www/geopos_proj/vendor/symfony/web-profiler-bundle/Resources/views/Collector/request.html.twig");
  1233. }
  1234. }