/app/cache/dev/twig/1b/11/fd8e57b1dfac1ddadb5b890aa5b1.php
PHP | 403 lines | 293 code | 24 blank | 86 comment | 24 complexity | 8ea51dd60cbdcfe1b8eba2c1455922b6 MD5 | raw file
Possible License(s): BSD-2-Clause, Apache-2.0, CC-BY-3.0, LGPL-3.0, BSD-3-Clause
- <?php
- /* @WebProfiler/Collector/request.html.twig */
- class __TwigTemplate_1b11fd8e57b1dfac1ddadb5b890aa5b1 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->parent = $this->env->loadTemplate("@WebProfiler/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 "@WebProfiler/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($this->getContext($context, "collector", true), "controller", array(), "any", false, true), "class", array(), "any", true, true)) {
- // line 6
- echo " ";
- $context["link"] = $this->env->getExtension('code')->getFileLink($this->getAttribute($this->getAttribute($this->getContext($context, "collector"), "controller"), "file"), $this->getAttribute($this->getAttribute($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($this->getContext($context, "collector"), "controller"), "class"));
- echo "</span>
- <span class=\"sf-toolbar-info-method\" onclick=\"";
- // line 8
- if ($this->getContext($context, "link")) {
- echo "window.location='";
- echo twig_escape_filter($this->env, $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($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($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($this->getContext($context, "collector"), "statuscode"))) ? ((((200 == $this->getAttribute($this->getContext($context, "collector"), "statuscode"))) ? ("green") : ("yellow"))) : ("red"));
- // line 16
- echo " ";
- $context["request_route"] = (($this->getAttribute($this->getContext($context, "collector"), "route")) ? ($this->getAttribute($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, $this->getContext($context, "request_status_code_color"), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute($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, $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, $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, $this->getContext($context, "request_status_code_color"), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute($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, $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, $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($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("@WebProfiler/Profiler/toolbar_item.html.twig")->display(array_merge($context, array("link" => $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=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAcCAQAAACn1QXuAAAD2UlEQVR42p2Ve0zTVxTHKS4+KCBqNomCClgEJJAYkznQQIFaWltAiigsxGUgMy6b45HWV4UKUoP1yaMS0DqniVpngKlEMoMzW2Z0QTf4Ax/bdCzFCpQWq60U+Xp/baG/EoGf3vPH7/b3PffTc++55/w8xg+wji4W3ImDw4S3DgSD5fGhA+wcbRxclqsB+30RnmWcda1JPWn1poj8e3TYlvb/l6edTdSLWvYHgcUIdSwiuduxOOdu/n90WF7350648J+a0ClxYNWECglgahP+OyUOPpm34sDMNt6Ez+QwjniAKSzFgKWTw6L33x/3/yMHzU09l/XKlykj7krlXURNDlsEaVm/a8Fh48trUEEKGY4Zb5SaXUpZH4oROAlKvjijPu9GQfcY6jkOQoBlWIgARCAVVbtNo1rxky9/lqiV/hMmQfwXfRtZQxYVVoItC5aUpO8rDIcvYvUNqcN0n7TfJkyC+5lUdYIH9hlOkn3bCWbVCoJLLX9C9+FZEcoIpj2HYHh9XT92ZbUEFl7XSvfhD2EVI5imFh/DX948+lvWhgAEHL3kBrNhNSOYvImCdSgEb+wbGrmjomCFv46DrWn6hN+2QY6ZDYH8Tt6Dv+c4Yfn9bofbN8ABG/xHjYcMKmNHC0Tw/XOF0Ez3+VaH2BMZ1Ezclaynnm1x8LTDBo7U65Tm0tejrltPwwvzIcQO7EIKFsB3c8uoprAqzZruwQpE1cnpeMVxxZLNc8mFQQy2W9Tb+1xSplbjD18EEvM7sjTjuksp6rXVDBeVN29s5ztjFY1VSILpfJAHZiFkG1lAtyTD+gvZsix5emPSC3flm6v3JGvfxNvn+8zDt/HLFR3XUYI6RFPltERkYFro4j6Itdd5JB6JzaaGBAKUFtorpOsHRNoLveAxU1jRQ6xFQbaVNNFBpICN6YjZ00UpN0swj4KFPK/MtTJBffXKoETk3mouiYw7cmoLpsGzNVFkth+NpTKWgnkjof9MnjOflRYqsy4rfV1udebZatIgHhyB0XmylsyL2VXJjtQReMNWe9uGH5JN3ytMubY6HS7J9HSYTI/L1c9ybQoTQfEwG2HN52p7KixuEQ91PH5wEYkE5sRxUYJaFCCr4g+6o+o2slEMNVHjCYqF+RBjJ87m0OI/2YnvwMVCgnLi2AjCcgQgpGen1Mh1bATSgV4pghGISKKyqT6Gj+CHRUj/grT66sGOp7tIjOpmhGEGqYLxA174DOW4gjZiP6EMn2LWO7pz+O8N2nYcQhGq7v+ITZg3wYcPPghFDKibGUNm3u/qq5hL1PWIxgJEIRZBmE69fQsyes/JMSWb+gAAAABJRU5ErkJggg==\" 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($this->getContext($context, "collector"), "requestquery"), "all"))) {
- // line 57
- echo " ";
- $this->env->loadTemplate("@WebProfiler/Profiler/bag.html.twig")->display(array("bag" => $this->getAttribute($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($this->getContext($context, "collector"), "requestrequest"), "all"))) {
- // line 67
- echo " ";
- $this->env->loadTemplate("@WebProfiler/Profiler/bag.html.twig")->display(array("bag" => $this->getAttribute($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($this->getContext($context, "collector"), "requestattributes"), "all"))) {
- // line 77
- echo " ";
- $this->env->loadTemplate("@WebProfiler/Profiler/bag.html.twig")->display(array("bag" => $this->getAttribute($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($this->getContext($context, "collector"), "requestcookies"), "all"))) {
- // line 87
- echo " ";
- $this->env->loadTemplate("@WebProfiler/Profiler/bag.html.twig")->display(array("bag" => $this->getAttribute($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("@WebProfiler/Profiler/bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, "collector"), "requestheaders")));
- // line 97
- echo "
- <h2>Request Content</h2>
- ";
- // line 100
- if (($this->getAttribute($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($this->getContext($context, "collector"), "content")) {
- // line 103
- echo " <pre>";
- echo twig_escape_filter($this->env, $this->getAttribute($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("@WebProfiler/Profiler/bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, "collector"), "requestserver")));
- // line 111
- echo "
- <h2>Response Headers</h2>
- ";
- // line 114
- $this->env->loadTemplate("@WebProfiler/Profiler/bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, "collector"), "responseheaders")));
- // line 115
- echo "
- <h2>Session Metadata</h2>
- ";
- // line 118
- if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "sessionmetadata"))) {
- // line 119
- echo " ";
- $this->env->loadTemplate("@WebProfiler/Profiler/table.html.twig")->display(array("data" => $this->getAttribute($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($this->getContext($context, "collector"), "sessionattributes"))) {
- // line 129
- echo " ";
- $this->env->loadTemplate("@WebProfiler/Profiler/table.html.twig")->display(array("data" => $this->getAttribute($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($this->getContext($context, "collector"), "flashes"))) {
- // line 139
- echo " ";
- $this->env->loadTemplate("@WebProfiler/Profiler/table.html.twig")->display(array("data" => $this->getAttribute($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($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($this->getContext($context, "profile"), "parent"), "token"))), "html", null, true);
- echo "\">Parent request: ";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "profile"), "parent"), "token"), "html", null, true);
- echo "</a></h2>
- ";
- // line 149
- $this->env->loadTemplate("@WebProfiler/Profiler/bag.html.twig")->display(array("bag" => $this->getAttribute($this->getAttribute($this->getAttribute($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($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($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($this->getContext($context, "child"), "token"))), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "child"), "token"), "html", null, true);
- echo "</a></h3>
- ";
- // line 157
- $this->env->loadTemplate("@WebProfiler/Profiler/bag.html.twig")->display(array("bag" => $this->getAttribute($this->getAttribute($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 "@WebProfiler/Collector/request.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 385 => 160, 382 => 159, 376 => 158, 374 => 157, 367 => 156, 363 => 155, 359 => 153, 357 => 152, 354 => 151, 349 => 149, 341 => 147, 336 => 145, 330 => 141, 324 => 139, 322 => 138, 317 => 135, 311 => 131, 308 => 130, 305 => 129, 303 => 128, 298 => 125, 289 => 120, 286 => 119, 284 => 118, 279 => 115, 277 => 114, 272 => 111, 270 => 110, 265 => 107, 261 => 105, 255 => 103, 251 => 101, 244 => 97, 237 => 93, 231 => 89, 228 => 88, 225 => 87, 223 => 86, 212 => 79, 209 => 78, 206 => 77, 204 => 76, 193 => 69, 190 => 68, 187 => 67, 185 => 66, 180 => 63, 174 => 59, 171 => 58, 168 => 57, 166 => 56, 159 => 53, 151 => 47, 148 => 46, 143 => 43, 140 => 42, 130 => 39, 116 => 31, 107 => 27, 103 => 25, 97 => 23, 88 => 20, 82 => 19, 76 => 17, 73 => 16, 70 => 15, 67 => 14, 61 => 12, 39 => 6, 36 => 5, 79 => 18, 47 => 8, 45 => 17, 40 => 11, 37 => 10, 22 => 1, 246 => 32, 164 => 58, 162 => 54, 157 => 56, 145 => 46, 139 => 45, 131 => 42, 115 => 39, 108 => 37, 106 => 36, 101 => 33, 98 => 32, 96 => 31, 92 => 21, 80 => 24, 74 => 14, 64 => 19, 55 => 9, 52 => 21, 50 => 14, 43 => 9, 41 => 8, 32 => 4, 29 => 6, 360 => 167, 351 => 150, 347 => 163, 344 => 162, 339 => 146, 337 => 160, 329 => 154, 327 => 140, 320 => 149, 313 => 145, 306 => 141, 299 => 137, 292 => 121, 285 => 129, 278 => 125, 263 => 113, 256 => 109, 249 => 100, 242 => 96, 232 => 93, 229 => 92, 221 => 86, 218 => 83, 213 => 82, 210 => 81, 205 => 78, 199 => 73, 191 => 74, 189 => 73, 179 => 68, 172 => 64, 165 => 60, 161 => 58, 158 => 57, 155 => 56, 147 => 53, 142 => 51, 138 => 50, 135 => 49, 132 => 48, 126 => 47, 123 => 35, 120 => 40, 117 => 43, 111 => 38, 104 => 36, 100 => 24, 93 => 31, 89 => 29, 86 => 28, 83 => 25, 75 => 23, 72 => 13, 69 => 12, 66 => 11, 60 => 6, 54 => 22, 51 => 12, 48 => 11, 42 => 7, 38 => 6, 35 => 9, 33 => 4, 30 => 3,);
- }
- }