/app/cache/dev/twig/b3/dc/dba3dbabd24ddd0ce4ebe5ebef53.php
PHP | 406 lines | 296 code | 24 blank | 86 comment | 24 complexity | 6833ce39c8951efbac1993e24648559d MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0, BSD-3-Clause, BSD-2-Clause
- <?php
- /* WebProfilerBundle:Collector:request.html.twig */
- class __TwigTemplate_b3dcdba3dbabd24ddd0ce4ebe5ebef53 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->parent = $this->env->loadTemplate("WebProfilerBundle:Profiler:layout.html.twig");
- $this->blocks = array(
- 'toolbar' => array($this, 'block_toolbar'),
- 'menu' => array($this, 'block_menu'),
- 'panel' => array($this, 'block_panel'),
- );
- }
- protected function doGetParent(array $context)
- {
- return "WebProfilerBundle:Profiler:layout.html.twig";
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- $this->parent->display($context, array_merge($this->blocks, $blocks));
- }
- // line 3
- public function block_toolbar($context, array $blocks = array())
- {
- // line 4
- echo " ";
- ob_start();
- // line 5
- echo " ";
- if ($this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "controller", array(), "any", false, true), "class", array(), "any", true, true)) {
- // line 6
- echo " ";
- $context["link"] = $this->env->getExtension('code')->getFileLink($this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "controller"), "file"), $this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "controller"), "line"));
- // line 7
- echo " <span class=\"sf-toolbar-info-class sf-toolbar-info-with-next-pointer\">";
- echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "controller"), "class"));
- echo "</span>
- <span class=\"sf-toolbar-info-method\" onclick=\"";
- // line 8
- if ((isset($context["link"]) ? $context["link"] : $this->getContext($context, "link"))) {
- echo "window.location='";
- echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")), "html", null, true);
- echo "';window.event.stopPropagation();return false;";
- }
- echo "\">
- ";
- // line 9
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "controller"), "method"), "html", null, true);
- echo "
- </span>
- ";
- } else {
- // line 12
- echo " <span class=\"sf-toolbar-info-class sf-toolbar-info-with-next-pointer\">";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "controller"), "html", null, true);
- echo "</span>
- ";
- }
- // line 14
- echo " ";
- $context["request_handler"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- // line 15
- echo " ";
- $context["request_status_code_color"] = (((400 > $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "statuscode"))) ? ((((200 == $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "statuscode"))) ? ("green") : ("yellow"))) : ("red"));
- // line 16
- echo " ";
- $context["request_route"] = (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "route")) ? ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "route")) : ("NONE"));
- // line 17
- echo " ";
- ob_start();
- // line 18
- echo " <img width=\"28\" height=\"28\" alt=\"Request\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAQAAADYBBcfAAACvElEQVR42tVTbUhTYRTerDCnKVoUUr/KCZmypA9Koet0bXNLJ5XazDJ/WFaCUY0pExRZXxYiJgsxWWjkaL+yK+po1gjyR2QfmqWxtBmaBtqWGnabT++c11Fu4l/P4VzOPc95zoHznsNZodIbLDdRcKnc1Bu8DAK45ZsOnykQNMopsNooLxCknb0cDq5vml9FtHiIgpBR0R6iihYyFMTDt2Lg56ObPkI6TMGXSof1EV67IqCwisJSWliFAG/E0CfFIiebdNypcxi/1zgyFiIiZ3sJQr0RQx5frLa6k7SOKRo3oMFNR5t62h2rttKXEOKFqDCxtXNmmBokO2KKTlp3IdWuT2dYRNGKwEXEBCcL172G5FG0aIxC0kR9PBTVH1kkwQn+IqJnCE33EalVzT9GJQS1tAdD3CKicJYFrxqx7W2ejCEdZy1FiC5tZxHhLJKOZaRdQJAyV/YAvDliySALHxmxR4Hqe2iwvaOR/CEuZYJFSgYhVbZRkA8KGdEktrqnqra90NndCdkt77fjIHIhexOrfO6O3bbbOj/rqu5IptgyR3sU93QbOYhquZK4MCDp0Ina/PLsu5JvbCTRaapUdUmIV/RzoMdsk/0hWRNdAvKOmvqlN0drsJbJf1P4YsQ5lGrJeuosiOUgbOC8cto3LfOXTdVd7BqZsQKbse+0jUL6WPcesqs4MNSUTQAxGjwFiC8m3yzmqwHJBWYKBJ9WNqW/dHkpU/osch1Yj5RJfXPfSEe/2UPsN490NPfZG5CKyJmcV5ayHyzy7BMqsXfuHhGK/cjAIeSpR92gehR55D8TcQhDEKJwytBJ4fr4NULvrEM8NszfJPyxDoHYAQ1oPCWmIX4gifmDS/DV2DKeb25FHWr76yEG7/9L4YFPeiQQ4/8LkgJ8Et+NncTCsYqzXAEXa7CWdPZzGWdlyV+vST0JanfPvwAAAABJRU5ErkJggg==\"/>
- <span class=\"sf-toolbar-status sf-toolbar-status-";
- // line 19
- echo twig_escape_filter($this->env, (isset($context["request_status_code_color"]) ? $context["request_status_code_color"] : $this->getContext($context, "request_status_code_color")), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "statuscode"), "html", null, true);
- echo "</span>
- <span class=\"sf-toolbar-status sf-toolbar-info-piece-additional\">";
- // line 20
- echo twig_escape_filter($this->env, (isset($context["request_handler"]) ? $context["request_handler"] : $this->getContext($context, "request_handler")), "html", null, true);
- echo "</span>
- <span class=\"sf-toolbar-info-piece-additional-detail\">on <i>";
- // line 21
- echo twig_escape_filter($this->env, (isset($context["request_route"]) ? $context["request_route"] : $this->getContext($context, "request_route")), "html", null, true);
- echo "</i></span>
- ";
- $context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- // line 23
- echo " ";
- ob_start();
- // line 24
- echo " ";
- ob_start();
- // line 25
- echo " <div class=\"sf-toolbar-info-piece\">
- <b>Status Code</b>
- <span class=\"sf-toolbar-status sf-toolbar-status-";
- // line 27
- echo twig_escape_filter($this->env, (isset($context["request_status_code_color"]) ? $context["request_status_code_color"] : $this->getContext($context, "request_status_code_color")), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "statuscode"), "html", null, true);
- echo "</span>
- </div>
- <div class=\"sf-toolbar-info-piece\">
- <b>Controller</b>
- ";
- // line 31
- echo twig_escape_filter($this->env, (isset($context["request_handler"]) ? $context["request_handler"] : $this->getContext($context, "request_handler")), "html", null, true);
- echo "
- </div>
- <div class=\"sf-toolbar-info-piece\">
- <b>Route name</b>
- <span>";
- // line 35
- echo twig_escape_filter($this->env, (isset($context["request_route"]) ? $context["request_route"] : $this->getContext($context, "request_route")), "html", null, true);
- echo "</span>
- </div>
- <div class=\"sf-toolbar-info-piece\">
- <b>Has session</b>
- <span>";
- // line 39
- if (twig_length_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "sessionmetadata"))) {
- echo "yes";
- } else {
- echo "no";
- }
- echo "</span>
- </div>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- // line 42
- echo " ";
- $context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- // line 43
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => (isset($context["profiler_url"]) ? $context["profiler_url"] : $this->getContext($context, "profiler_url")))));
- }
- // line 46
- public function block_menu($context, array $blocks = array())
- {
- // line 47
- echo "<span class=\"label\">
- <span class=\"icon\"><img src=\"";
- // line 48
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/request.png"), "html", null, true);
- echo "\" alt=\"Request\" /></span>
- <strong>Request</strong>
- </span>
- ";
- }
- // line 53
- public function block_panel($context, array $blocks = array())
- {
- // line 54
- echo " <h2>Request GET Parameters</h2>
- ";
- // line 56
- if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "requestquery"), "all"))) {
- // line 57
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "requestquery")));
- // line 58
- echo " ";
- } else {
- // line 59
- echo " <p>
- <em>No GET parameters</em>
- </p>
- ";
- }
- // line 63
- echo "
- <h2>Request POST Parameters</h2>
- ";
- // line 66
- if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "requestrequest"), "all"))) {
- // line 67
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "requestrequest")));
- // line 68
- echo " ";
- } else {
- // line 69
- echo " <p>
- <em>No POST parameters</em>
- </p>
- ";
- }
- // line 73
- echo "
- <h2>Request Attributes</h2>
- ";
- // line 76
- if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "requestattributes"), "all"))) {
- // line 77
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "requestattributes")));
- // line 78
- echo " ";
- } else {
- // line 79
- echo " <p>
- <em>No attributes</em>
- </p>
- ";
- }
- // line 83
- echo "
- <h2>Request Cookies</h2>
- ";
- // line 86
- if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "requestcookies"), "all"))) {
- // line 87
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "requestcookies")));
- // line 88
- echo " ";
- } else {
- // line 89
- echo " <p>
- <em>No cookies</em>
- </p>
- ";
- }
- // line 93
- echo "
- <h2>Request Headers</h2>
- ";
- // line 96
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "requestheaders")));
- // line 97
- echo "
- <h2>Request Content</h2>
- ";
- // line 100
- if (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "content") == false)) {
- // line 101
- echo " <p><em>Request content not available (it was retrieved as a resource).</em></p>
- ";
- } elseif ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "content")) {
- // line 103
- echo " <pre>";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "content"), "html", null, true);
- echo "</pre>
- ";
- } else {
- // line 105
- echo " <p><em>No content</em></p>
- ";
- }
- // line 107
- echo "
- <h2>Request Server Parameters</h2>
- ";
- // line 110
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "requestserver")));
- // line 111
- echo "
- <h2>Response Headers</h2>
- ";
- // line 114
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "responseheaders")));
- // line 115
- echo "
- <h2>Session Metadata</h2>
- ";
- // line 118
- if (twig_length_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "sessionmetadata"))) {
- // line 119
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "sessionmetadata")));
- // line 120
- echo " ";
- } else {
- // line 121
- echo " <p>
- <em>No session metadata</em>
- </p>
- ";
- }
- // line 125
- echo "
- <h2>Session Attributes</h2>
- ";
- // line 128
- if (twig_length_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "sessionattributes"))) {
- // line 129
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "sessionattributes")));
- // line 130
- echo " ";
- } else {
- // line 131
- echo " <p>
- <em>No session attributes</em>
- </p>
- ";
- }
- // line 135
- echo "
- <h2>Flashes</h2>
- ";
- // line 138
- if (twig_length_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "flashes"))) {
- // line 139
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "flashes")));
- // line 140
- echo " ";
- } else {
- // line 141
- echo " <p>
- <em>No flashes</em>
- </p>
- ";
- }
- // line 145
- echo "
- ";
- // line 146
- if ($this->getAttribute((isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile")), "parent")) {
- // line 147
- echo " <h2><a href=\"";
- echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => $this->getAttribute($this->getAttribute((isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile")), "parent"), "token"))), "html", null, true);
- echo "\">Parent request: ";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile")), "parent"), "token"), "html", null, true);
- echo "</a></h2>
- ";
- // line 149
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile")), "parent"), "getcollector", array(0 => "request"), "method"), "requestattributes")));
- // line 150
- echo " ";
- }
- // line 151
- echo "
- ";
- // line 152
- if (twig_length_filter($this->env, $this->getAttribute((isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile")), "children"))) {
- // line 153
- echo " <h2>Sub requests</h2>
- ";
- // line 155
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile")), "children"));
- foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
- // line 156
- echo " <h3><a href=\"";
- echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => $this->getAttribute((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), "token"))), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), "token"), "html", null, true);
- echo "</a></h3>
- ";
- // line 157
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getAttribute((isset($context["child"]) ? $context["child"] : $this->getContext($context, "child")), "getcollector", array(0 => "request"), "method"), "requestattributes")));
- // line 158
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 159
- echo " ";
- }
- // line 160
- echo "
- ";
- }
- public function getTemplateName()
- {
- return "WebProfilerBundle:Collector:request.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 388 => 160, 385 => 159, 379 => 158, 377 => 157, 370 => 156, 366 => 155, 362 => 153, 360 => 152, 357 => 151, 354 => 150, 352 => 149, 344 => 147, 342 => 146, 339 => 145, 330 => 140, 327 => 139, 320 => 135, 314 => 131, 311 => 130, 308 => 129, 306 => 128, 301 => 125, 292 => 120, 289 => 119, 287 => 118, 282 => 115, 280 => 114, 275 => 111, 273 => 110, 268 => 107, 264 => 105, 258 => 103, 254 => 101, 247 => 97, 240 => 93, 234 => 89, 231 => 88, 226 => 86, 221 => 83, 215 => 79, 212 => 78, 209 => 77, 207 => 76, 202 => 73, 196 => 69, 193 => 68, 190 => 67, 188 => 66, 183 => 63, 177 => 59, 174 => 58, 171 => 57, 169 => 56, 162 => 53, 143 => 43, 130 => 39, 107 => 27, 103 => 25, 97 => 23, 88 => 20, 82 => 19, 79 => 18, 76 => 17, 73 => 16, 67 => 14, 61 => 12, 47 => 8, 36 => 5, 70 => 15, 63 => 9, 46 => 14, 39 => 6, 22 => 1, 163 => 32, 155 => 50, 152 => 49, 149 => 48, 145 => 46, 139 => 45, 123 => 35, 120 => 40, 115 => 39, 111 => 38, 108 => 37, 106 => 36, 101 => 33, 98 => 32, 96 => 31, 92 => 21, 80 => 24, 74 => 22, 64 => 19, 55 => 9, 52 => 15, 50 => 14, 43 => 9, 41 => 8, 37 => 8, 32 => 4, 29 => 6, 356 => 163, 347 => 160, 343 => 159, 340 => 158, 335 => 157, 333 => 141, 325 => 138, 323 => 149, 316 => 145, 309 => 141, 302 => 137, 295 => 121, 288 => 129, 281 => 125, 274 => 121, 259 => 109, 252 => 100, 245 => 96, 238 => 97, 228 => 87, 225 => 88, 217 => 83, 214 => 82, 211 => 81, 206 => 78, 203 => 77, 198 => 74, 192 => 72, 184 => 70, 182 => 69, 172 => 64, 165 => 54, 158 => 56, 154 => 48, 151 => 47, 148 => 46, 140 => 42, 135 => 47, 131 => 42, 128 => 45, 125 => 44, 119 => 43, 116 => 31, 113 => 40, 110 => 39, 104 => 36, 100 => 24, 93 => 31, 89 => 29, 86 => 28, 83 => 25, 75 => 23, 72 => 22, 69 => 20, 66 => 20, 60 => 8, 54 => 6, 51 => 12, 48 => 15, 42 => 7, 38 => 6, 35 => 5, 33 => 4, 30 => 3,);
- }
- }