2b5c5e1b2773040a14b049ed84f0.php 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <?php
  2. /* WebProfilerBundle:Collector:request.html.twig */
  3. class __TwigTemplate_baef2b5c5e1b2773040a14b049ed84f0 extends Twig_Template
  4. {
  5. protected $parent;
  6. public function __construct(Twig_Environment $env)
  7. {
  8. parent::__construct($env);
  9. $this->parent = array();
  10. $this->blocks = array(
  11. 'toolbar' => array($this, 'block_toolbar'),
  12. 'menu' => array($this, 'block_menu'),
  13. 'panel' => array($this, 'block_panel'),
  14. );
  15. }
  16. public function getParent(array $context)
  17. {
  18. $parent = "WebProfilerBundle:Profiler:layout.html.twig";
  19. if ($parent instanceof Twig_Template) {
  20. $name = $parent->getTemplateName();
  21. $this->parent[$name] = $parent;
  22. $parent = $name;
  23. } elseif (!isset($this->parent[$parent])) {
  24. $this->parent[$parent] = $this->env->loadTemplate($parent);
  25. }
  26. return $this->parent[$parent];
  27. }
  28. protected function doDisplay(array $context, array $blocks = array())
  29. {
  30. $context = array_merge($this->env->getGlobals(), $context);
  31. $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
  32. }
  33. // line 3
  34. public function block_toolbar($context, array $blocks = array())
  35. {
  36. // line 4
  37. echo " ";
  38. ob_start();
  39. // line 5
  40. echo " <img width=\"28\" height=\"28\" alt=\"Request\" style=\"border-width: 0; vertical-align: middle; margin-right: 5px;\" src=\"data:image/png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FRUZsovMcI+RByzjQ1NcXv7e2ZaBuDtpIhNf2BgYFfkULHxsbGzwBROYeHh/o6KLKAy40I6zJwVLi6uhoKYW9r34EHqpycnO9aWlquA+pccK7n6em5nZqa+ufMzAwfcoU7OzsGkLWOar9Opf28q6tLoKuMRRHx3NxcyllVR3y9vb3CtLS0uoyMjKsU1vT09GZra+s2tJcFKjwVxliiX0ddXFz0SYkB+moQL4T8daBNIBDsARAGkC8F4TLtwYBZTA9Bj2DwUdG1tbU5jI+Pc0ihHJaMFRcXP0Tejg5R9nqJiYmnGkD7dE5DJBIdIGTEN15eXv4xQncEBhUVFbdQod9GR0f/MDU1ZUV7CDWvv7/fnmGtegvkBYbI1tZWLzc3t+dAGDXQxV9XIYS1mpmZMX19fSI/P7/fAQT3sT2pVCo94cHN+vr6D+DNZW2evLy8J7hbj+U9DvukrIE6URwv0HtNWO8iVJYeHh5XgZtXNIz4XrG3t7+H5RLu8TDPkzKQ0sjIqA+NzkxPT6dCoUdQUNAagUFzc/NlROQ33Kml1mC0/trIUyOWCIhtQDdAniAei5HdICnoGfu0KVlSsw+BAD0Yir6V+Pv7L5AcGMCBkTXkEDnCnPGbSL0kYuHKiBW8SlVNjC/hoeRas3zbhIisIcRzhFLMG/4vZVgFBqwyFRsJleb5Yv7/EX7T4x8BBgDTTU7fbnA/yAAAAABJRU5ErkJggg==\"/>
  41. ";
  42. $context['icon'] = new Twig_Markup(ob_get_clean());
  43. // line 7
  44. echo " ";
  45. ob_start();
  46. // line 8
  47. echo " ";
  48. ob_start();
  49. // line 9
  50. echo " ";
  51. 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)) {
  52. // line 10
  53. echo " <span>";
  54. echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "class", array(), "any", false));
  55. echo "</span>
  56. <span>::</span>
  57. ";
  58. // line 12
  59. $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));
  60. // line 13
  61. echo " <span>";
  62. if ($this->getContext($context, 'link')) {
  63. echo "<a style=\"color: #2f2f2f\" href=\"";
  64. echo twig_escape_filter($this->env, $this->getContext($context, 'link'), "html");
  65. echo "\">";
  66. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "method", array(), "any", false), "html");
  67. echo "</a>";
  68. } else {
  69. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "method", array(), "any", false), "html");
  70. }
  71. echo "</span>
  72. ";
  73. } else {
  74. // line 15
  75. echo " <span>";
  76. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "html");
  77. echo "</span>
  78. ";
  79. }
  80. // line 17
  81. echo " <span style=\"margin: 0; padding: 0; color: #979696;\">|</span>
  82. <span";
  83. // line 18
  84. echo (((!$this->getAttribute($this->getContext($context, 'collector'), "route", array(), "any", false))) ? (" style=\"color:#a33\"") : (""));
  85. echo ">";
  86. 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");
  87. echo "</span>
  88. <span style=\"margin: 0; padding: 0; color: #979696;\">|</span>
  89. <span style=\"color: ";
  90. // line 20
  91. echo (((200 == $this->getAttribute($this->getContext($context, 'collector'), "statuscode", array(), "any", false))) ? ("#759e1a") : ("#a33"));
  92. echo "\">";
  93. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "statuscode", array(), "any", false), "html");
  94. echo "</span>
  95. ";
  96. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  97. // line 22
  98. echo " ";
  99. $context['text'] = new Twig_Markup(ob_get_clean());
  100. // line 23
  101. echo " ";
  102. $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url'))));
  103. }
  104. // line 26
  105. public function block_menu($context, array $blocks = array())
  106. {
  107. // line 27
  108. echo "<span class=\"label\">
  109. <span class=\"icon\"><img src=\"";
  110. // line 28
  111. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/request.png"), "html");
  112. echo "\" alt=\"Request\" /></span>
  113. <strong>Request</strong>
  114. </span>
  115. ";
  116. }
  117. // line 33
  118. public function block_panel($context, array $blocks = array())
  119. {
  120. // line 34
  121. echo " <h2>Request GET Parameters</h2>
  122. ";
  123. // line 36
  124. if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestquery", array(), "any", false), "all", array(), "any", false))) {
  125. // line 37
  126. echo " ";
  127. $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestquery", array(), "any", false)));
  128. // line 38
  129. echo " ";
  130. } else {
  131. // line 39
  132. echo " <p>
  133. <em>No GET parameters</em>
  134. </p>
  135. ";
  136. }
  137. // line 43
  138. echo "
  139. <h2>Request POST Parameters</h2>
  140. ";
  141. // line 46
  142. if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestrequest", array(), "any", false), "all", array(), "any", false))) {
  143. // line 47
  144. echo " ";
  145. $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestrequest", array(), "any", false)));
  146. // line 48
  147. echo " ";
  148. } else {
  149. // line 49
  150. echo " <p>
  151. <em>No POST parameters</em>
  152. </p>
  153. ";
  154. }
  155. // line 53
  156. echo "
  157. <h2>Request Attributes</h2>
  158. ";
  159. // line 56
  160. if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestattributes", array(), "any", false), "all", array(), "any", false))) {
  161. // line 57
  162. echo " ";
  163. $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestattributes", array(), "any", false)));
  164. // line 58
  165. echo " ";
  166. } else {
  167. // line 59
  168. echo " <p>
  169. <em>No attributes</em>
  170. </p>
  171. ";
  172. }
  173. // line 63
  174. echo "
  175. <h2>Request Cookies</h2>
  176. ";
  177. // line 66
  178. if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestcookies", array(), "any", false), "all", array(), "any", false))) {
  179. // line 67
  180. echo " ";
  181. $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestcookies", array(), "any", false)));
  182. // line 68
  183. echo " ";
  184. } else {
  185. // line 69
  186. echo " <p>
  187. <em>No cookies</em>
  188. </p>
  189. ";
  190. }
  191. // line 73
  192. echo "
  193. <h2>Request Headers</h2>
  194. ";
  195. // line 76
  196. $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestheaders", array(), "any", false)));
  197. // line 77
  198. echo "
  199. <h2>Request Content</h2>
  200. <p>
  201. ";
  202. // line 81
  203. if (($this->getAttribute($this->getContext($context, 'collector'), "content", array(), "any", false) == false)) {
  204. // line 82
  205. echo " <em>Request content not available (it was retrieved as a resource).</em>
  206. ";
  207. } elseif ($this->getAttribute($this->getContext($context, 'collector'), "content", array(), "any", false)) {
  208. // line 84
  209. echo " <pre>";
  210. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "content", array(), "any", false), "html");
  211. echo "</pre>
  212. ";
  213. } else {
  214. // line 86
  215. echo " <em>No content</em>
  216. ";
  217. }
  218. // line 88
  219. echo " </p>
  220. <h2>Request Server Parameters</h2>
  221. ";
  222. // line 92
  223. $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestserver", array(), "any", false)));
  224. // line 93
  225. echo "
  226. <h2>Response Headers</h2>
  227. ";
  228. // line 96
  229. $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "responseheaders", array(), "any", false)));
  230. // line 97
  231. echo "
  232. <h2>Session Attributes</h2>
  233. ";
  234. // line 100
  235. if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "sessionattributes", array(), "any", false))) {
  236. // line 101
  237. echo " <table>
  238. <tr>
  239. <th>Key</th>
  240. <th>Value</th>
  241. </tr>
  242. ";
  243. // line 106
  244. $context['attributes'] = $this->getAttribute($this->getContext($context, 'collector'), "sessionattributes", array(), "any", false);
  245. // line 107
  246. echo " ";
  247. $context['_parent'] = (array) $context;
  248. $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, 'attributes'))));
  249. foreach ($context['_seq'] as $context['_key'] => $context['key']) {
  250. // line 108
  251. echo " <tr>
  252. <th>";
  253. // line 109
  254. echo twig_escape_filter($this->env, $this->getContext($context, 'key'), "html");
  255. echo "</th>
  256. <td>";
  257. // line 110
  258. 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");
  259. echo "</td>
  260. </tr>
  261. ";
  262. }
  263. $_parent = $context['_parent'];
  264. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
  265. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  266. // line 113
  267. echo " </table>
  268. ";
  269. } else {
  270. // line 115
  271. echo " <p>
  272. <em>No session attributes</em>
  273. </p>
  274. ";
  275. }
  276. // line 119
  277. echo "
  278. ";
  279. // line 121
  280. if ($this->getAttribute($this->getContext($context, 'profile'), "parent", array(), "any", false)) {
  281. // line 122
  282. echo " <h2><a href=\"";
  283. 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");
  284. echo "\">Parent request: ";
  285. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'profile'), "parent", array(), "any", false), "token", array(), "any", false), "html");
  286. echo "</a></h2>
  287. ";
  288. // line 124
  289. $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)));
  290. // line 125
  291. echo " ";
  292. }
  293. // line 126
  294. echo "
  295. ";
  296. // line 127
  297. if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'profile'), "children", array(), "any", false))) {
  298. // line 128
  299. echo " <h2>Sub requests</h2>
  300. ";
  301. // line 130
  302. $context['_parent'] = (array) $context;
  303. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'profile'), "children", array(), "any", false));
  304. foreach ($context['_seq'] as $context['_key'] => $context['child']) {
  305. // line 131
  306. echo " <h3><a href=\"";
  307. 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");
  308. echo "\">";
  309. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'child'), "token", array(), "any", false), "html");
  310. echo "</a></h3>
  311. ";
  312. // line 132
  313. $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)));
  314. // line 133
  315. echo " ";
  316. }
  317. $_parent = $context['_parent'];
  318. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  319. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  320. // line 134
  321. echo " ";
  322. }
  323. // line 135
  324. echo "
  325. ";
  326. }
  327. public function getTemplateName()
  328. {
  329. return "WebProfilerBundle:Collector:request.html.twig";
  330. }
  331. public function isTraitable()
  332. {
  333. return false;
  334. }
  335. }