123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- <?php
-
- /* WebProfilerBundle:Collector:request.html.twig */
- class __TwigTemplate_baef2b5c5e1b2773040a14b049ed84f0 extends Twig_Template
- {
- protected $parent;
-
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
-
- $this->parent = array();
- $this->blocks = array(
- 'toolbar' => array($this, 'block_toolbar'),
- 'menu' => array($this, 'block_menu'),
- 'panel' => array($this, 'block_panel'),
- );
- }
-
- public function getParent(array $context)
- {
- $parent = "WebProfilerBundle:Profiler:layout.html.twig";
- if ($parent instanceof Twig_Template) {
- $name = $parent->getTemplateName();
- $this->parent[$name] = $parent;
- $parent = $name;
- } elseif (!isset($this->parent[$parent])) {
- $this->parent[$parent] = $this->env->loadTemplate($parent);
- }
-
- return $this->parent[$parent];
- }
-
- protected function doDisplay(array $context, array $blocks = array())
- {
- $context = array_merge($this->env->getGlobals(), $context);
-
- $this->getParent($context)->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 " <img width=\"28\" height=\"28\" alt=\"Request\" style=\"border-width: 0; vertical-align: middle; margin-right: 5px;\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5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nO9aWlquA+pccK7n6em5nZqa+ufMzAwfcoU7OzsGkLWOar9Opf28q6tLoKuMRRHx3NxcyllVR3y9vb3CtLS0uoyMjKsU1vT09GZra+s2tJcFKjwVxliiX0ddXFz0SYkB+moQL4T8daBNIBDsARAGkC8F4TLtwYBZTA9Bj2DwUdG1tbU5jI+Pc0ihHJaMFRcXP0Tejg5R9nqJiYmnGkD7dE5DJBIdIGTEN15eXv4xQncEBhUVFbdQod9GR0f/MDU1ZUV7CDWvv7/fnmGtegvkBYbI1tZWLzc3t+dAGDXQxV9XIYS1mpmZMX19fSI/P7/fAQT3sT2pVCo94cHN+vr6D+DNZW2evLy8J7hbj+U9DvukrIE6URwv0HtNWO8iVJYeHh5XgZtXNIz4XrG3t7+H5RLu8TDPkzKQ0sjIqA+NzkxPT6dCoUdQUNAagUFzc/NlROQ33Kml1mC0/trIUyOWCIhtQDdAniAei5HdICnoGfu0KVlSsw+BAD0Yir6V+Pv7L5AcGMCBkTXkEDnCnPGbSL0kYuHKiBW8SlVNjC/hoeRas3zbhIisIcRzhFLMG/4vZVgFBqwyFRsJleb5Yv7/EX7T4x8BBgDTTU7fbnA/yAAAAABJRU5ErkJggg==\"/>
- ";
- $context['icon'] = new Twig_Markup(ob_get_clean());
- // line 7
- echo " ";
- ob_start();
- // line 8
- echo " ";
- ob_start();
- // line 9
- echo " ";
- if ($this->getAttribute((($this->getAttribute(((array_key_exists("collector", $context)) ? (twig_default_filter($this->getContext($context, 'collector'))) : ("")), "controller", array(), "any", true)) ? (twig_default_filter($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false))) : ("")), "class", array(), "any", true)) {
- // line 10
- echo " <span>";
- echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "class", array(), "any", false));
- echo "</span>
- <span>::</span>
- ";
- // line 12
- $context['link'] = $this->env->getExtension('code')->getFileLink($this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "file", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "line", array(), "any", false));
- // line 13
- echo " <span>";
- if ($this->getContext($context, 'link')) {
- echo "<a style=\"color: #2f2f2f\" href=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, 'link'), "html");
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "method", array(), "any", false), "html");
- echo "</a>";
- } else {
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "method", array(), "any", false), "html");
- }
- echo "</span>
- ";
- } else {
- // line 15
- echo " <span>";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "html");
- echo "</span>
- ";
- }
- // line 17
- echo " <span style=\"margin: 0; padding: 0; color: #979696;\">|</span>
- <span";
- // line 18
- echo (((!$this->getAttribute($this->getContext($context, 'collector'), "route", array(), "any", false))) ? (" style=\"color:#a33\"") : (""));
- echo ">";
- echo twig_escape_filter($this->env, (($this->getAttribute($this->getContext($context, 'collector'), "route", array(), "any", false)) ? ($this->getAttribute($this->getContext($context, 'collector'), "route", array(), "any", false)) : ("NONE")), "html");
- echo "</span>
- <span style=\"margin: 0; padding: 0; color: #979696;\">|</span>
- <span style=\"color: ";
- // line 20
- echo (((200 == $this->getAttribute($this->getContext($context, 'collector'), "statuscode", array(), "any", false))) ? ("#759e1a") : ("#a33"));
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "statuscode", array(), "any", false), "html");
- echo "</span>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- // line 22
- echo " ";
- $context['text'] = new Twig_Markup(ob_get_clean());
- // line 23
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url'))));
- }
-
- // line 26
- public function block_menu($context, array $blocks = array())
- {
- // line 27
- echo "<span class=\"label\">
- <span class=\"icon\"><img src=\"";
- // line 28
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/request.png"), "html");
- echo "\" alt=\"Request\" /></span>
- <strong>Request</strong>
- </span>
- ";
- }
-
- // line 33
- public function block_panel($context, array $blocks = array())
- {
- // line 34
- echo " <h2>Request GET Parameters</h2>
-
- ";
- // line 36
- if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestquery", array(), "any", false), "all", array(), "any", false))) {
- // line 37
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestquery", array(), "any", false)));
- // line 38
- echo " ";
- } else {
- // line 39
- echo " <p>
- <em>No GET parameters</em>
- </p>
- ";
- }
- // line 43
- echo "
- <h2>Request POST Parameters</h2>
-
- ";
- // line 46
- if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestrequest", array(), "any", false), "all", array(), "any", false))) {
- // line 47
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestrequest", array(), "any", false)));
- // line 48
- echo " ";
- } else {
- // line 49
- echo " <p>
- <em>No POST parameters</em>
- </p>
- ";
- }
- // line 53
- echo "
- <h2>Request Attributes</h2>
-
- ";
- // line 56
- if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestattributes", array(), "any", false), "all", array(), "any", false))) {
- // line 57
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestattributes", array(), "any", false)));
- // line 58
- echo " ";
- } else {
- // line 59
- echo " <p>
- <em>No attributes</em>
- </p>
- ";
- }
- // line 63
- echo "
- <h2>Request Cookies</h2>
-
- ";
- // line 66
- if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestcookies", array(), "any", false), "all", array(), "any", false))) {
- // line 67
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestcookies", array(), "any", false)));
- // line 68
- echo " ";
- } else {
- // line 69
- echo " <p>
- <em>No cookies</em>
- </p>
- ";
- }
- // line 73
- echo "
- <h2>Request Headers</h2>
-
- ";
- // line 76
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestheaders", array(), "any", false)));
- // line 77
- echo "
- <h2>Request Content</h2>
-
- <p>
- ";
- // line 81
- if (($this->getAttribute($this->getContext($context, 'collector'), "content", array(), "any", false) == false)) {
- // line 82
- echo " <em>Request content not available (it was retrieved as a resource).</em>
- ";
- } elseif ($this->getAttribute($this->getContext($context, 'collector'), "content", array(), "any", false)) {
- // line 84
- echo " <pre>";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "content", array(), "any", false), "html");
- echo "</pre>
- ";
- } else {
- // line 86
- echo " <em>No content</em>
- ";
- }
- // line 88
- echo " </p>
-
- <h2>Request Server Parameters</h2>
-
- ";
- // line 92
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestserver", array(), "any", false)));
- // line 93
- echo "
- <h2>Response Headers</h2>
-
- ";
- // line 96
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "responseheaders", array(), "any", false)));
- // line 97
- echo "
- <h2>Session Attributes</h2>
-
- ";
- // line 100
- if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "sessionattributes", array(), "any", false))) {
- // line 101
- echo " <table>
- <tr>
- <th>Key</th>
- <th>Value</th>
- </tr>
- ";
- // line 106
- $context['attributes'] = $this->getAttribute($this->getContext($context, 'collector'), "sessionattributes", array(), "any", false);
- // line 107
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, 'attributes'))));
- foreach ($context['_seq'] as $context['_key'] => $context['key']) {
- // line 108
- echo " <tr>
- <th>";
- // line 109
- echo twig_escape_filter($this->env, $this->getContext($context, 'key'), "html");
- echo "</th>
- <td>";
- // line 110
- echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->dump($this->getAttribute($this->getContext($context, 'attributes'), $this->getContext($context, 'key'), array(), "array", false)), "html");
- echo "</td>
- </tr>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 113
- echo " </table>
- ";
- } else {
- // line 115
- echo " <p>
- <em>No session attributes</em>
- </p>
- ";
- }
- // line 119
- echo "
-
- ";
- // line 121
- if ($this->getAttribute($this->getContext($context, 'profile'), "parent", array(), "any", false)) {
- // line 122
- 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", array(), "any", false), "token", array(), "any", false))), "html");
- echo "\">Parent request: ";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'profile'), "parent", array(), "any", false), "token", array(), "any", false), "html");
- echo "</a></h2>
-
- ";
- // line 124
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, 'profile'), "parent", array(), "any", false), "getcollector", array("request", ), "method", false), "requestattributes", array(), "any", false)));
- // line 125
- echo " ";
- }
- // line 126
- echo "
- ";
- // line 127
- if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'profile'), "children", array(), "any", false))) {
- // line 128
- echo " <h2>Sub requests</h2>
-
- ";
- // line 130
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'profile'), "children", array(), "any", false));
- foreach ($context['_seq'] as $context['_key'] => $context['child']) {
- // line 131
- 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", array(), "any", false))), "html");
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'child'), "token", array(), "any", false), "html");
- echo "</a></h3>
- ";
- // line 132
- $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getAttribute($this->getContext($context, 'child'), "getcollector", array("request", ), "method", false), "requestattributes", array(), "any", false)));
- // line 133
- 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 134
- echo " ";
- }
- // line 135
- echo "
- ";
- }
-
- public function getTemplateName()
- {
- return "WebProfilerBundle:Collector:request.html.twig";
- }
-
- public function isTraitable()
- {
- return false;
- }
- }
|