var/cache/dev/twig/53/532bef525c24f397fa2327177d6d9f52.php line 117

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. /* @WebProfiler/Profiler/layout.html.twig */
  15. class __TwigTemplate_c55ccdb0fb58eb899e9b3ce30b5feb3d extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->blocks = [
  24. 'body' => [$this, 'block_body'],
  25. 'summary' => [$this, 'block_summary'],
  26. 'panel' => [$this, 'block_panel'],
  27. ];
  28. }
  29. protected function doGetParent(array $context)
  30. {
  31. // line 1
  32. return "@WebProfiler/Profiler/base.html.twig";
  33. }
  34. protected function doDisplay(array $context, array $blocks = [])
  35. {
  36. $macros = $this->macros;
  37. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/layout.html.twig"));
  39. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/layout.html.twig"));
  41. $this->parent = $this->loadTemplate("@WebProfiler/Profiler/base.html.twig", "@WebProfiler/Profiler/layout.html.twig", 1);
  42. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45. }
  46. // line 3
  47. public function block_body($context, array $blocks = [])
  48. {
  49. $macros = $this->macros;
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  54. // line 4
  55. yield " ";
  56. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/header.html.twig", array(), false);
  57. yield "
  58. <div id=\"summary\">
  59. ";
  60. // line 7
  61. yield from $this->unwrap()->yieldBlock('summary', $context, $blocks);
  62. // line 93
  63. yield " </div>
  64. <div id=\"content\" class=\"container\">
  65. <div id=\"main\">
  66. <div id=\"sidebar\">
  67. <div id=\"sidebar-shortcuts\">
  68. <div class=\"shortcuts\">
  69. <a href=\"#\" id=\"sidebarShortcutsMenu\" class=\"visible-small\">
  70. <span class=\"icon\">";
  71. // line 101
  72. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/menu.svg");
  73. yield "</span>
  74. </a>
  75. <a class=\"btn btn-sm\" href=\"";
  76. // line 104
  77. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler_search", ["limit" => 10]);
  78. yield "\">Last 10</a>
  79. <a class=\"btn btn-sm\" href=\"";
  80. // line 105
  81. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", Twig\Extension\CoreExtension::merge(["token" => "latest"], CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["request"]) || array_key_exists("request", $context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.', 105, $this->source); })()), "query", [], "any", false, false, false, 105), "all", [], "any", false, false, false, 105))), "html", null, true);
  82. yield "\">Latest</a>
  83. <a class=\"sf-toggle btn btn-sm\" data-toggle-selector=\"#sidebar-search\" ";
  84. // line 107
  85. if ((array_key_exists("tokens", $context) || array_key_exists("about", $context))) {
  86. yield "data-toggle-initial=\"display\"";
  87. }
  88. yield ">
  89. ";
  90. // line 108
  91. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/search.svg");
  92. yield " <span class=\"hidden-small\">Search</span>
  93. </a>
  94. ";
  95. // line 111
  96. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("web_profiler.controller.profiler::searchBarAction", array(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["request"]) || array_key_exists("request", $context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.', 111, $this->source); })()), "query", [], "any", false, false, false, 111), "all", [], "any", false, false, false, 111)));
  97. yield "
  98. </div>
  99. </div>
  100. ";
  101. // line 115
  102. if (array_key_exists("templates", $context)) {
  103. // line 116
  104. yield " <ul id=\"menu-profiler\">
  105. ";
  106. // line 117
  107. $context['_parent'] = $context;
  108. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["templates"]) || array_key_exists("templates", $context) ? $context["templates"] : (function () { throw new RuntimeError('Variable "templates" does not exist.', 117, $this->source); })()));
  109. $context['loop'] = [
  110. 'parent' => $context['_parent'],
  111. 'index0' => 0,
  112. 'index' => 1,
  113. 'first' => true,
  114. ];
  115. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  116. $length = count($context['_seq']);
  117. $context['loop']['revindex0'] = $length - 1;
  118. $context['loop']['revindex'] = $length;
  119. $context['loop']['length'] = $length;
  120. $context['loop']['last'] = 1 === $length;
  121. }
  122. foreach ($context['_seq'] as $context["name"] => $context["template"]) {
  123. // line 118
  124. yield " ";
  125. $context["menu"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  126. // line 119
  127. if ( $this->loadTemplate($context["template"], "@WebProfiler/Profiler/layout.html.twig", 119)->unwrap()->hasBlock("menu", $context)) {
  128. // line 120
  129. $__internal_compile_0 = $context;
  130. $__internal_compile_1 = ["collector" => 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.', 120, $this->source); })()), "getcollector", [$context["name"]], "method", false, false, false, 120), "profiler_markup_version" => (isset($context["profiler_markup_version"]) || array_key_exists("profiler_markup_version", $context) ? $context["profiler_markup_version"] : (function () { throw new RuntimeError('Variable "profiler_markup_version" does not exist.', 120, $this->source); })())];
  131. if (!is_iterable($__internal_compile_1)) {
  132. throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 120, $this->getSourceContext());
  133. }
  134. $__internal_compile_1 = CoreExtension::toArray($__internal_compile_1);
  135. $context = $this->env->mergeGlobals(array_merge($context, $__internal_compile_1));
  136. // line 121
  137. yield from $this->loadTemplate($context["template"], "@WebProfiler/Profiler/layout.html.twig", 121)->unwrap()->yieldBlock("menu", $context);
  138. $context = $__internal_compile_0;
  139. }
  140. return; yield '';
  141. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  142. // line 125
  143. yield " ";
  144. if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["menu"]) || array_key_exists("menu", $context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.', 125, $this->source); })()))) {
  145. // line 126
  146. yield " <li class=\"";
  147. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["name"], "html", null, true);
  148. yield " ";
  149. yield ((($context["name"] == (isset($context["panel"]) || array_key_exists("panel", $context) ? $context["panel"] : (function () { throw new RuntimeError('Variable "panel" does not exist.', 126, $this->source); })()))) ? ("selected") : (""));
  150. yield "\">
  151. <a href=\"";
  152. // line 127
  153. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", ["token" => (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 127, $this->source); })()), "panel" => $context["name"]]), "html", null, true);
  154. yield "\">";
  155. yield (isset($context["menu"]) || array_key_exists("menu", $context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.', 127, $this->source); })());
  156. yield "</a>
  157. </li>
  158. ";
  159. }
  160. // line 130
  161. yield " ";
  162. ++$context['loop']['index0'];
  163. ++$context['loop']['index'];
  164. $context['loop']['first'] = false;
  165. if (isset($context['loop']['length'])) {
  166. --$context['loop']['revindex0'];
  167. --$context['loop']['revindex'];
  168. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  169. }
  170. }
  171. $_parent = $context['_parent'];
  172. unset($context['_seq'], $context['_iterated'], $context['name'], $context['template'], $context['_parent'], $context['loop']);
  173. $context = array_intersect_key($context, $_parent) + $_parent;
  174. // line 131
  175. yield " </ul>
  176. ";
  177. }
  178. // line 133
  179. yield "
  180. ";
  181. // line 134
  182. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/settings.html.twig");
  183. yield "
  184. </div>
  185. <div id=\"collector-wrapper\">
  186. <div id=\"collector-content\">
  187. ";
  188. // line 139
  189. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/base_js.html.twig");
  190. yield "
  191. ";
  192. // line 140
  193. yield from $this->unwrap()->yieldBlock('panel', $context, $blocks);
  194. // line 141
  195. yield " </div>
  196. </div>
  197. </div>
  198. </div>
  199. <script>
  200. (function () {
  201. Sfjs.addEventListener(document.getElementById('sidebarShortcutsMenu'), 'click', function (event) {
  202. event.preventDefault();
  203. Sfjs.toggleClass(document.getElementById('sidebar'), 'expanded');
  204. })
  205. }());
  206. </script>
  207. ";
  208. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  209. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  210. return; yield '';
  211. }
  212. // line 7
  213. public function block_summary($context, array $blocks = [])
  214. {
  215. $macros = $this->macros;
  216. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  217. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "summary"));
  218. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  219. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "summary"));
  220. // line 8
  221. yield " ";
  222. if (array_key_exists("profile", $context)) {
  223. // line 9
  224. yield " ";
  225. $context["request_collector"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["profile"] ?? null), "collectors", [], "any", false, true, false, 9), "request", [], "any", true, true, false, 9)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["profile"] ?? null), "collectors", [], "any", false, true, false, 9), "request", [], "any", false, false, false, 9), false)) : (false));
  226. // line 10
  227. yield " ";
  228. $context["status_code"] = (((isset($context["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 10, $this->source); })())) ? (((CoreExtension::getAttribute($this->env, $this->source, ($context["request_collector"] ?? null), "statuscode", [], "any", true, true, false, 10)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["request_collector"] ?? null), "statuscode", [], "any", false, false, false, 10), 0)) : (0))) : (0));
  229. // line 11
  230. yield " ";
  231. $context["css_class"] = ((((isset($context["status_code"]) || array_key_exists("status_code", $context) ? $context["status_code"] : (function () { throw new RuntimeError('Variable "status_code" does not exist.', 11, $this->source); })()) > 399)) ? ("status-error") : (((((isset($context["status_code"]) || array_key_exists("status_code", $context) ? $context["status_code"] : (function () { throw new RuntimeError('Variable "status_code" does not exist.', 11, $this->source); })()) > 299)) ? ("status-warning") : ("status-success"))));
  232. // line 12
  233. yield "
  234. <div class=\"status ";
  235. // line 13
  236. 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.', 13, $this->source); })()), "html", null, true);
  237. yield "\">
  238. <div class=\"container\">
  239. <h2 class=\"break-long-words\">
  240. ";
  241. // line 16
  242. if (CoreExtension::inFilter(Twig\Extension\CoreExtension::upper($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.', 16, $this->source); })()), "method", [], "any", false, false, false, 16)), ["GET", "HEAD"])) {
  243. // line 17
  244. yield " <a href=\"";
  245. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 17, $this->source); })()), "url", [], "any", false, false, false, 17), "html", null, true);
  246. yield "\">";
  247. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 17, $this->source); })()), "url", [], "any", false, false, false, 17), "html", null, true);
  248. yield "</a>
  249. ";
  250. } else {
  251. // line 19
  252. yield " ";
  253. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 19, $this->source); })()), "url", [], "any", false, false, false, 19), "html", null, true);
  254. yield "
  255. ";
  256. // line 20
  257. $context["referer"] = (((isset($context["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 20, $this->source); })())) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 20, $this->source); })()), "requestheaders", [], "any", false, false, false, 20), "get", ["referer"], "method", false, false, false, 20)) : (null));
  258. // line 21
  259. yield " ";
  260. if ((isset($context["referer"]) || array_key_exists("referer", $context) ? $context["referer"] : (function () { throw new RuntimeError('Variable "referer" does not exist.', 21, $this->source); })())) {
  261. // line 22
  262. yield " <a href=\"";
  263. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["referer"]) || array_key_exists("referer", $context) ? $context["referer"] : (function () { throw new RuntimeError('Variable "referer" does not exist.', 22, $this->source); })()), "html", null, true);
  264. yield "\" class=\"referer\">Return to referer URL</a>
  265. ";
  266. }
  267. // line 24
  268. yield " ";
  269. }
  270. // line 25
  271. yield " </h2>
  272. ";
  273. // line 27
  274. if (((isset($context["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 27, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 27, $this->source); })()), "redirect", [], "any", false, false, false, 27))) {
  275. // line 28
  276. $context["redirect"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 28, $this->source); })()), "redirect", [], "any", false, false, false, 28);
  277. // line 29
  278. $context["controller"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["redirect"]) || array_key_exists("redirect", $context) ? $context["redirect"] : (function () { throw new RuntimeError('Variable "redirect" does not exist.', 29, $this->source); })()), "controller", [], "any", false, false, false, 29);
  279. // line 30
  280. $context["redirect_route"] = ("@" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["redirect"]) || array_key_exists("redirect", $context) ? $context["redirect"] : (function () { throw new RuntimeError('Variable "redirect" does not exist.', 30, $this->source); })()), "route", [], "any", false, false, false, 30));
  281. // line 31
  282. yield " <dl class=\"metadata\">
  283. <dt>
  284. <span class=\"label\">";
  285. // line 33
  286. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["redirect"]) || array_key_exists("redirect", $context) ? $context["redirect"] : (function () { throw new RuntimeError('Variable "redirect" does not exist.', 33, $this->source); })()), "status_code", [], "any", false, false, false, 33), "html", null, true);
  287. yield "</span>
  288. Redirect from
  289. </dt>
  290. <dd>
  291. ";
  292. // line 37
  293. ((("GET" != CoreExtension::getAttribute($this->env, $this->source, (isset($context["redirect"]) || array_key_exists("redirect", $context) ? $context["redirect"] : (function () { throw new RuntimeError('Variable "redirect" does not exist.', 37, $this->source); })()), "method", [], "any", false, false, false, 37))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["redirect"]) || array_key_exists("redirect", $context) ? $context["redirect"] : (function () { throw new RuntimeError('Variable "redirect" does not exist.', 37, $this->source); })()), "method", [], "any", false, false, false, 37), "html", null, true)) : (yield ""));
  294. yield "
  295. ";
  296. // line 38
  297. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["redirect"] ?? null), "controller", [], "any", false, true, false, 38), "class", [], "any", true, true, false, 38)) {
  298. // line 39
  299. $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.', 39, $this->source); })()), "file", [], "any", false, false, false, 39), 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.', 39, $this->source); })()), "line", [], "any", false, false, false, 39));
  300. // line 40
  301. if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 40, $this->source); })())) {
  302. yield "<a href=\"";
  303. 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.', 40, $this->source); })()), "html", null, true);
  304. yield "\" title=\"";
  305. 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.', 40, $this->source); })()), "file", [], "any", false, false, false, 40), "html", null, true);
  306. yield "\">";
  307. }
  308. // line 41
  309. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["redirect_route"]) || array_key_exists("redirect_route", $context) ? $context["redirect_route"] : (function () { throw new RuntimeError('Variable "redirect_route" does not exist.', 41, $this->source); })()), "html", null, true);
  310. // line 42
  311. if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 42, $this->source); })())) {
  312. yield "</a>";
  313. }
  314. } else {
  315. // line 44
  316. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["redirect_route"]) || array_key_exists("redirect_route", $context) ? $context["redirect_route"] : (function () { throw new RuntimeError('Variable "redirect_route" does not exist.', 44, $this->source); })()), "html", null, true);
  317. }
  318. // line 46
  319. yield " (<a href=\"";
  320. 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["redirect"]) || array_key_exists("redirect", $context) ? $context["redirect"] : (function () { throw new RuntimeError('Variable "redirect" does not exist.', 46, $this->source); })()), "token", [], "any", false, false, false, 46), "panel" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["request"]) || array_key_exists("request", $context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.', 46, $this->source); })()), "query", [], "any", false, false, false, 46), "get", ["panel", "request"], "method", false, false, false, 46)]), "html", null, true);
  321. yield "\">";
  322. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["redirect"]) || array_key_exists("redirect", $context) ? $context["redirect"] : (function () { throw new RuntimeError('Variable "redirect" does not exist.', 46, $this->source); })()), "token", [], "any", false, false, false, 46), "html", null, true);
  323. yield "</a>)
  324. </dd>
  325. </dl>";
  326. }
  327. // line 50
  328. yield "
  329. ";
  330. // line 51
  331. if (((isset($context["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 51, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 51, $this->source); })()), "forwardtoken", [], "any", false, false, false, 51))) {
  332. // line 52
  333. $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.', 52, $this->source); })()), "childByToken", [CoreExtension::getAttribute($this->env, $this->source, (isset($context["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 52, $this->source); })()), "forwardtoken", [], "any", false, false, false, 52)], "method", false, false, false, 52);
  334. // line 53
  335. yield " ";
  336. $context["controller"] = (((isset($context["forward_profile"]) || array_key_exists("forward_profile", $context) ? $context["forward_profile"] : (function () { throw new RuntimeError('Variable "forward_profile" does not exist.', 53, $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.', 53, $this->source); })()), "collector", ["request"], "method", false, false, false, 53), "controller", [], "any", false, false, false, 53)) : ("n/a"));
  337. // line 54
  338. yield " <dl class=\"metadata\">
  339. <dt>Forwarded to</dt>
  340. <dd>
  341. ";
  342. // line 57
  343. $context["link"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["controller"] ?? null), "file", [], "any", true, true, false, 57)) ? ($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.', 57, $this->source); })()), "file", [], "any", false, false, false, 57), 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.', 57, $this->source); })()), "line", [], "any", false, false, false, 57))) : (null));
  344. // line 58
  345. if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 58, $this->source); })())) {
  346. yield "<a href=\"";
  347. 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.', 58, $this->source); })()), "html", null, true);
  348. yield "\" title=\"";
  349. 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.', 58, $this->source); })()), "file", [], "any", false, false, false, 58), "html", null, true);
  350. yield "\">";
  351. }
  352. // line 59
  353. if (CoreExtension::getAttribute($this->env, $this->source, ($context["controller"] ?? null), "class", [], "any", true, true, false, 59)) {
  354. // line 60
  355. 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.', 60, $this->source); })()), "class", [], "any", false, false, false, 60), "html", null, true))), "html", null, true);
  356. // line 61
  357. ((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.', 61, $this->source); })()), "method", [], "any", false, false, false, 61)) ? (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.', 61, $this->source); })()), "method", [], "any", false, false, false, 61)), "html", null, true)) : (yield ""));
  358. } else {
  359. // line 63
  360. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["controller"]) || array_key_exists("controller", $context) ? $context["controller"] : (function () { throw new RuntimeError('Variable "controller" does not exist.', 63, $this->source); })()), "html", null, true);
  361. }
  362. // line 65
  363. if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 65, $this->source); })())) {
  364. yield "</a>";
  365. }
  366. // line 66
  367. yield " (<a href=\"";
  368. 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["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 66, $this->source); })()), "forwardtoken", [], "any", false, false, false, 66)]), "html", null, true);
  369. yield "\">";
  370. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["request_collector"]) || array_key_exists("request_collector", $context) ? $context["request_collector"] : (function () { throw new RuntimeError('Variable "request_collector" does not exist.', 66, $this->source); })()), "forwardtoken", [], "any", false, false, false, 66), "html", null, true);
  371. yield "</a>)
  372. </dd>
  373. </dl>";
  374. }
  375. // line 70
  376. yield "
  377. <dl class=\"metadata\">
  378. <dt>Method</dt>
  379. <dd>";
  380. // line 73
  381. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::upper($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.', 73, $this->source); })()), "method", [], "any", false, false, false, 73)), "html", null, true);
  382. yield "</dd>
  383. <dt>HTTP Status</dt>
  384. <dd>";
  385. // line 76
  386. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["status_code"]) || array_key_exists("status_code", $context) ? $context["status_code"] : (function () { throw new RuntimeError('Variable "status_code" does not exist.', 76, $this->source); })()), "html", null, true);
  387. yield "</dd>
  388. <dt>IP</dt>
  389. <dd>
  390. <a href=\"";
  391. // line 80
  392. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler_search_results", ["token" => (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 80, $this->source); })()), "limit" => 10, "ip" => 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.', 80, $this->source); })()), "ip", [], "any", false, false, false, 80)]), "html", null, true);
  393. yield "\">";
  394. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 80, $this->source); })()), "ip", [], "any", false, false, false, 80), "html", null, true);
  395. yield "</a>
  396. </dd>
  397. <dt>Profiled on</dt>
  398. <dd><time datetime=\"";
  399. // line 84
  400. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(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.', 84, $this->source); })()), "time", [], "any", false, false, false, 84), "c"), "html", null, true);
  401. yield "\">";
  402. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(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.', 84, $this->source); })()), "time", [], "any", false, false, false, 84), "r"), "html", null, true);
  403. yield "</time></dd>
  404. <dt>Token</dt>
  405. <dd>";
  406. // line 87
  407. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 87, $this->source); })()), "token", [], "any", false, false, false, 87), "html", null, true);
  408. yield "</dd>
  409. </dl>
  410. </div>
  411. </div>
  412. ";
  413. }
  414. // line 92
  415. yield " ";
  416. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  417. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  418. return; yield '';
  419. }
  420. // line 140
  421. public function block_panel($context, array $blocks = [])
  422. {
  423. $macros = $this->macros;
  424. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  425. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  426. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  427. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  428. yield "";
  429. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  430. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  431. return; yield '';
  432. }
  433. /**
  434. * @codeCoverageIgnore
  435. */
  436. public function getTemplateName()
  437. {
  438. return "@WebProfiler/Profiler/layout.html.twig";
  439. }
  440. /**
  441. * @codeCoverageIgnore
  442. */
  443. public function isTraitable()
  444. {
  445. return false;
  446. }
  447. /**
  448. * @codeCoverageIgnore
  449. */
  450. public function getDebugInfo()
  451. {
  452. return array ( 461 => 140, 450 => 92, 442 => 87, 434 => 84, 425 => 80, 418 => 76, 412 => 73, 407 => 70, 398 => 66, 394 => 65, 391 => 63, 388 => 61, 386 => 60, 384 => 59, 376 => 58, 374 => 57, 369 => 54, 366 => 53, 364 => 52, 362 => 51, 359 => 50, 350 => 46, 347 => 44, 342 => 42, 340 => 41, 332 => 40, 330 => 39, 328 => 38, 324 => 37, 317 => 33, 313 => 31, 311 => 30, 309 => 29, 307 => 28, 305 => 27, 301 => 25, 298 => 24, 292 => 22, 289 => 21, 287 => 20, 282 => 19, 274 => 17, 272 => 16, 266 => 13, 263 => 12, 260 => 11, 257 => 10, 254 => 9, 251 => 8, 241 => 7, 218 => 141, 216 => 140, 212 => 139, 204 => 134, 201 => 133, 197 => 131, 183 => 130, 175 => 127, 168 => 126, 165 => 125, 159 => 121, 151 => 120, 149 => 119, 146 => 118, 129 => 117, 126 => 116, 124 => 115, 117 => 111, 111 => 108, 105 => 107, 100 => 105, 96 => 104, 90 => 101, 80 => 93, 78 => 7, 71 => 4, 61 => 3, 38 => 1,);
  453. }
  454. public function getSourceContext()
  455. {
  456. return new Source("{% extends '@WebProfiler/Profiler/base.html.twig' %}
  457. {% block body %}
  458. {{ include('@WebProfiler/Profiler/header.html.twig', with_context = false) }}
  459. <div id=\"summary\">
  460. {% block summary %}
  461. {% if profile is defined %}
  462. {% set request_collector = profile.collectors.request|default(false) %}
  463. {% set status_code = request_collector ? request_collector.statuscode|default(0) : 0 %}
  464. {% set css_class = status_code > 399 ? 'status-error' : status_code > 299 ? 'status-warning' : 'status-success' %}
  465. <div class=\"status {{ css_class }}\">
  466. <div class=\"container\">
  467. <h2 class=\"break-long-words\">
  468. {% if profile.method|upper in ['GET', 'HEAD'] %}
  469. <a href=\"{{ profile.url }}\">{{ profile.url }}</a>
  470. {% else %}
  471. {{ profile.url }}
  472. {% set referer = request_collector ? request_collector.requestheaders.get('referer') : null %}
  473. {% if referer %}
  474. <a href=\"{{ referer }}\" class=\"referer\">Return to referer URL</a>
  475. {% endif %}
  476. {% endif %}
  477. </h2>
  478. {% if request_collector and request_collector.redirect -%}
  479. {%- set redirect = request_collector.redirect -%}
  480. {%- set controller = redirect.controller -%}
  481. {%- set redirect_route = '@' ~ redirect.route %}
  482. <dl class=\"metadata\">
  483. <dt>
  484. <span class=\"label\">{{ redirect.status_code }}</span>
  485. Redirect from
  486. </dt>
  487. <dd>
  488. {{ 'GET' != redirect.method ? redirect.method }}
  489. {% if redirect.controller.class is defined -%}
  490. {%- set link = controller.file|file_link(controller.line) -%}
  491. {% if link %}<a href=\"{{ link }}\" title=\"{{ controller.file }}\">{% endif -%}
  492. {{ redirect_route }}
  493. {%- if link %}</a>{% endif -%}
  494. {%- else -%}
  495. {{ redirect_route }}
  496. {%- endif %}
  497. (<a href=\"{{ path('_profiler', { token: redirect.token, panel: request.query.get('panel', 'request') }) }}\">{{ redirect.token }}</a>)
  498. </dd>
  499. </dl>
  500. {%- endif %}
  501. {% if request_collector and request_collector.forwardtoken -%}
  502. {% set forward_profile = profile.childByToken(request_collector.forwardtoken) %}
  503. {% set controller = forward_profile ? forward_profile.collector('request').controller : 'n/a' %}
  504. <dl class=\"metadata\">
  505. <dt>Forwarded to</dt>
  506. <dd>
  507. {% set link = controller.file is defined ? controller.file|file_link(controller.line) : null -%}
  508. {%- if link %}<a href=\"{{ link }}\" title=\"{{ controller.file }}\">{% endif -%}
  509. {% if controller.class is defined %}
  510. {{- controller.class|abbr_class|striptags -}}
  511. {{- controller.method ? ' :: ' ~ controller.method -}}
  512. {% else %}
  513. {{- controller -}}
  514. {% endif %}
  515. {%- if link %}</a>{% endif %}
  516. (<a href=\"{{ path('_profiler', { token: request_collector.forwardtoken }) }}\">{{ request_collector.forwardtoken }}</a>)
  517. </dd>
  518. </dl>
  519. {%- endif %}
  520. <dl class=\"metadata\">
  521. <dt>Method</dt>
  522. <dd>{{ profile.method|upper }}</dd>
  523. <dt>HTTP Status</dt>
  524. <dd>{{ status_code }}</dd>
  525. <dt>IP</dt>
  526. <dd>
  527. <a href=\"{{ path('_profiler_search_results', { token: token, limit: 10, ip: profile.ip }) }}\">{{ profile.ip }}</a>
  528. </dd>
  529. <dt>Profiled on</dt>
  530. <dd><time datetime=\"{{ profile.time|date('c') }}\">{{ profile.time|date('r') }}</time></dd>
  531. <dt>Token</dt>
  532. <dd>{{ profile.token }}</dd>
  533. </dl>
  534. </div>
  535. </div>
  536. {% endif %}
  537. {% endblock %}
  538. </div>
  539. <div id=\"content\" class=\"container\">
  540. <div id=\"main\">
  541. <div id=\"sidebar\">
  542. <div id=\"sidebar-shortcuts\">
  543. <div class=\"shortcuts\">
  544. <a href=\"#\" id=\"sidebarShortcutsMenu\" class=\"visible-small\">
  545. <span class=\"icon\">{{ include('@WebProfiler/Icon/menu.svg') }}</span>
  546. </a>
  547. <a class=\"btn btn-sm\" href=\"{{ path('_profiler_search', { limit: 10 }) }}\">Last 10</a>
  548. <a class=\"btn btn-sm\" href=\"{{ path('_profiler', { token: 'latest' }|merge(request.query.all)) }}\">Latest</a>
  549. <a class=\"sf-toggle btn btn-sm\" data-toggle-selector=\"#sidebar-search\" {% if tokens is defined or about is defined %}data-toggle-initial=\"display\"{% endif %}>
  550. {{ include('@WebProfiler/Icon/search.svg') }} <span class=\"hidden-small\">Search</span>
  551. </a>
  552. {{ render(controller('web_profiler.controller.profiler::searchBarAction', query=request.query.all)) }}
  553. </div>
  554. </div>
  555. {% if templates is defined %}
  556. <ul id=\"menu-profiler\">
  557. {% for name, template in templates %}
  558. {% set menu -%}
  559. {%- if block('menu', template) is defined -%}
  560. {% with { collector: profile.getcollector(name), profiler_markup_version: profiler_markup_version } %}
  561. {{- block('menu', template) -}}
  562. {% endwith %}
  563. {%- endif -%}
  564. {%- endset %}
  565. {% if menu is not empty %}
  566. <li class=\"{{ name }} {{ name == panel ? 'selected' }}\">
  567. <a href=\"{{ path('_profiler', { token: token, panel: name }) }}\">{{ menu|raw }}</a>
  568. </li>
  569. {% endif %}
  570. {% endfor %}
  571. </ul>
  572. {% endif %}
  573. {{ include('@WebProfiler/Profiler/settings.html.twig') }}
  574. </div>
  575. <div id=\"collector-wrapper\">
  576. <div id=\"collector-content\">
  577. {{ include('@WebProfiler/Profiler/base_js.html.twig') }}
  578. {% block panel '' %}
  579. </div>
  580. </div>
  581. </div>
  582. </div>
  583. <script>
  584. (function () {
  585. Sfjs.addEventListener(document.getElementById('sidebarShortcutsMenu'), 'click', function (event) {
  586. event.preventDefault();
  587. Sfjs.toggleClass(document.getElementById('sidebar'), 'expanded');
  588. })
  589. }());
  590. </script>
  591. {% endblock %}
  592. ", "@WebProfiler/Profiler/layout.html.twig", "/home/web/sisweb/dev.pedido.invgp.com/vendor/symfony/web-profiler-bundle/Resources/views/Profiler/layout.html.twig");
  593. }
  594. }