PageRenderTime 53ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/app/cache/dev/twig/2f/e3/03bf487ffaf7fec854f4fa37ded4.php

https://github.com/modernfidelity/Symfony2-RESTAPI
PHP | 374 lines | 288 code | 19 blank | 67 comment | 28 complexity | 5e56f007e6379d6ad60d02220b6ee886 MD5 | raw file
Possible License(s): BSD-2-Clause, Apache-2.0, CC-BY-3.0, LGPL-3.0, BSD-3-Clause
  1. <?php
  2. /* @WebProfiler/Collector/logger.html.twig */
  3. class __TwigTemplate_2fe303bf487ffaf7fec854f4fa37ded4 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = $this->env->loadTemplate("@WebProfiler/Profiler/layout.html.twig");
  9. $this->blocks = array(
  10. 'toolbar' => array($this, 'block_toolbar'),
  11. 'menu' => array($this, 'block_menu'),
  12. 'panel' => array($this, 'block_panel'),
  13. );
  14. }
  15. protected function doGetParent(array $context)
  16. {
  17. return "@WebProfiler/Profiler/layout.html.twig";
  18. }
  19. protected function doDisplay(array $context, array $blocks = array())
  20. {
  21. // line 3
  22. $context["logger"] = $this;
  23. $this->parent->display($context, array_merge($this->blocks, $blocks));
  24. }
  25. // line 5
  26. public function block_toolbar($context, array $blocks = array())
  27. {
  28. // line 6
  29. echo " ";
  30. if (($this->getAttribute($this->getContext($context, "collector"), "counterrors") || $this->getAttribute($this->getContext($context, "collector"), "countdeprecations"))) {
  31. // line 7
  32. echo " ";
  33. ob_start();
  34. // line 8
  35. echo " <img width=\"15\" height=\"28\" alt=\"Logs\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAcCAYAAABoMT8aAAAA4klEQVQ4y2P4//8/AyWYYXgYwOPp6Xnc3t7+P7EYpB6k7+zZs2ADNEjRjIwDAgKWgAywIUfz8+fPVzg7O/8AGeCATQEQnAfi/SAah/wcV1dXvAYUgORANA75ehcXl+/4DHAABRIe+ZrhbgAhTHsDiEgHBA0glA6GfSDiw5mZma+A+sphBlhVVFQ88vHx+Xfu3Ll7QP5haOjjwtuAuGHv3r3NIMNABqh8+/atsaur666vr+9XUlwSHx//AGQANxCbAnEWyGQicRMQ9wBxIQM0qjiBWAFqkB00/glhayBWHwb1AgB38EJsUtxtWwAAAABJRU5ErkJggg==\"/>
  36. ";
  37. // line 9
  38. if ($this->getAttribute($this->getContext($context, "collector"), "counterrors")) {
  39. // line 10
  40. echo " ";
  41. $context["status_color"] = "red";
  42. // line 11
  43. echo " ";
  44. } else {
  45. // line 12
  46. echo " ";
  47. $context["status_color"] = "yellow";
  48. // line 13
  49. echo " ";
  50. }
  51. // line 14
  52. echo " ";
  53. $context["error_count"] = ($this->getAttribute($this->getContext($context, "collector"), "counterrors") + $this->getAttribute($this->getContext($context, "collector"), "countdeprecations"));
  54. // line 15
  55. echo " <span class=\"sf-toolbar-status sf-toolbar-status-";
  56. echo twig_escape_filter($this->env, $this->getContext($context, "status_color"), "html", null, true);
  57. echo "\">";
  58. echo twig_escape_filter($this->env, $this->getContext($context, "error_count"), "html", null, true);
  59. echo "</span>
  60. ";
  61. $context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  62. // line 17
  63. echo " ";
  64. ob_start();
  65. // line 18
  66. echo " ";
  67. if ($this->getAttribute($this->getContext($context, "collector"), "counterrors")) {
  68. // line 19
  69. echo " <div class=\"sf-toolbar-info-piece\">
  70. <b>Exception</b>
  71. <span class=\"sf-toolbar-status sf-toolbar-status-red\">";
  72. // line 21
  73. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "counterrors"), "html", null, true);
  74. echo "</span>
  75. </div>
  76. ";
  77. }
  78. // line 24
  79. echo " ";
  80. if ($this->getAttribute($this->getContext($context, "collector"), "countdeprecations")) {
  81. // line 25
  82. echo " <div class=\"sf-toolbar-info-piece\">
  83. <b>Deprecated Calls</b>
  84. <span class=\"sf-toolbar-status sf-toolbar-status-yellow\">";
  85. // line 27
  86. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "countdeprecations"), "html", null, true);
  87. echo "</span>
  88. </div>
  89. ";
  90. }
  91. // line 30
  92. echo " ";
  93. $context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  94. // line 31
  95. echo " ";
  96. $this->env->loadTemplate("@WebProfiler/Profiler/toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, "profiler_url"))));
  97. // line 32
  98. echo " ";
  99. }
  100. }
  101. // line 35
  102. public function block_menu($context, array $blocks = array())
  103. {
  104. // line 36
  105. echo "<span class=\"label\">
  106. <span class=\"icon\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAgCAYAAAAMq2gFAAABjElEQVRIx2MIDw+vd3R0/GFvb/+fGtjFxeVJSUmJ1f///5nv37/PAMMMzs7OVLMEhoODgy/k5+cHJCYmagAtZAJbRG1L0DEwxCYALeOgiUXbt2+/X1NT8xTEdnd3/wi0SI4mFgHBDCBeCLXoF5BtwkCEpvNAvB8JnydCTwgQR0It+g1kWxNjUQEQOyDhAiL0gNUiWWRDjEUOyMkUZsCoRaMWjVpEvEVkFkGjFmEUqgc+fvx4hVYWIReqzi9evKileaoDslnu3LkTNLQtGk3edLPIycnpL9Bge5pb1NXVdQNosDmGRcAm7F+QgKur6783b95cBQoeRGv1kII3QPOdAoZF8+fPP4PUqnx55syZVKCEI1rLh1hsAbWEZ8aMGaUoFoFcMG3atKdIjfSPISEhawICAlaQgwMDA1f6+/sfB5rzE2Sej4/PD3C7DkjoAHHVoUOHLpSVlX3w8vL6Sa34Alr6Z8WKFaCoMARZxAHEoFZ/HBD3A/FyIF4BxMvIxCC964F4G6hZDMTxQCwJAGWE8pur5kFDAAAAAElFTkSuQmCC\" alt=\"Logger\" /></span>
  107. <strong>Logs</strong>
  108. ";
  109. // line 39
  110. if (($this->getAttribute($this->getContext($context, "collector"), "counterrors") || $this->getAttribute($this->getContext($context, "collector"), "countdeprecations"))) {
  111. // line 40
  112. echo " ";
  113. $context["error_count"] = ($this->getAttribute($this->getContext($context, "collector"), "counterrors") + $this->getAttribute($this->getContext($context, "collector"), "countdeprecations"));
  114. // line 41
  115. echo " <span class=\"count\">
  116. <span>";
  117. // line 42
  118. echo twig_escape_filter($this->env, $this->getContext($context, "error_count"), "html", null, true);
  119. echo "</span>
  120. </span>
  121. ";
  122. }
  123. // line 45
  124. echo "</span>
  125. ";
  126. }
  127. // line 48
  128. public function block_panel($context, array $blocks = array())
  129. {
  130. // line 49
  131. echo " <h2>Logs</h2>
  132. ";
  133. // line 51
  134. $context["priority"] = $this->getAttribute($this->getAttribute($this->getContext($context, "request"), "query"), "get", array(0 => "priority", 1 => 0), "method");
  135. // line 52
  136. echo "
  137. <table>
  138. <tr>
  139. <th>Filter</th>
  140. <td>
  141. <form id=\"priority-form\" action=\"\" method=\"get\" style=\"display: inline\">
  142. <input type=\"hidden\" name=\"panel\" value=\"logger\" />
  143. <label for=\"priority\">Priority</label>
  144. <select id=\"priority\" name=\"priority\" onchange=\"document.getElementById('priority-form').submit(); \">
  145. ";
  146. // line 62
  147. echo " ";
  148. $context['_parent'] = (array) $context;
  149. $context['_seq'] = twig_ensure_traversable(array(100 => "DEBUG", 200 => "INFO", 250 => "NOTICE", 300 => "WARNING", 400 => "ERROR", 500 => "CRITICAL", 550 => "ALERT", 600 => "EMERGENCY", "-100" => "DEPRECATION only"));
  150. foreach ($context['_seq'] as $context["value"] => $context["text"]) {
  151. // line 63
  152. echo " <option value=\"";
  153. echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
  154. echo "\"";
  155. echo ((($this->getContext($context, "value") == $this->getContext($context, "priority"))) ? (" selected") : (""));
  156. echo ">";
  157. echo twig_escape_filter($this->env, $this->getContext($context, "text"), "html", null, true);
  158. echo "</option>
  159. ";
  160. }
  161. $_parent = $context['_parent'];
  162. unset($context['_seq'], $context['_iterated'], $context['value'], $context['text'], $context['_parent'], $context['loop']);
  163. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  164. // line 65
  165. echo " </select>
  166. <noscript>
  167. <input type=\"submit\" value=\"refresh\" />
  168. </noscript>
  169. </form>
  170. </td>
  171. </tr>
  172. </table>
  173. ";
  174. // line 74
  175. if ($this->getAttribute($this->getContext($context, "collector"), "logs")) {
  176. // line 75
  177. echo " <ul class=\"alt\">
  178. ";
  179. // line 76
  180. $context['_parent'] = (array) $context;
  181. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "logs"));
  182. $context['_iterated'] = false;
  183. $context['loop'] = array(
  184. 'parent' => $context['_parent'],
  185. 'index0' => 0,
  186. 'index' => 1,
  187. 'first' => true,
  188. );
  189. foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
  190. if (((($this->getContext($context, "priority") >= 0) && ($this->getAttribute($this->getContext($context, "log"), "priority") >= $this->getContext($context, "priority"))) || (($this->getContext($context, "priority") < 0) && ((($this->getAttribute($this->getAttribute($this->getContext($context, "log", true), "context", array(), "any", false, true), "type", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getContext($context, "log", true), "context", array(), "any", false, true), "type"), 0)) : (0)) == $this->getContext($context, "priority"))))) {
  191. // line 77
  192. echo " <li class=\"";
  193. echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
  194. if (($this->getAttribute($this->getContext($context, "log"), "priority") >= 400)) {
  195. echo " error";
  196. } elseif (($this->getAttribute($this->getContext($context, "log"), "priority") >= 300)) {
  197. echo " warning";
  198. }
  199. echo "\">
  200. ";
  201. // line 78
  202. echo $context["logger"]->getdisplay_message($this->getAttribute($this->getContext($context, "loop"), "index"), $this->getContext($context, "log"));
  203. echo "
  204. </li>
  205. ";
  206. $context['_iterated'] = true;
  207. ++$context['loop']['index0'];
  208. ++$context['loop']['index'];
  209. $context['loop']['first'] = false;
  210. }
  211. }
  212. if (!$context['_iterated']) {
  213. // line 81
  214. echo " <li><em>No logs available for this priority.</em></li>
  215. ";
  216. }
  217. $_parent = $context['_parent'];
  218. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
  219. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  220. // line 83
  221. echo " </ul>
  222. ";
  223. } else {
  224. // line 85
  225. echo " <p>
  226. <em>No logs available.</em>
  227. </p>
  228. ";
  229. }
  230. }
  231. // line 92
  232. public function getdisplay_message($_log_index = null, $_log = null)
  233. {
  234. $context = $this->env->mergeGlobals(array(
  235. "log_index" => $_log_index,
  236. "log" => $_log,
  237. ));
  238. $blocks = array();
  239. ob_start();
  240. try {
  241. // line 93
  242. echo " ";
  243. if ((twig_constant("Symfony\\Component\\HttpKernel\\Debug\\ErrorHandler::TYPE_DEPRECATION") == (($this->getAttribute($this->getAttribute($this->getContext($context, "log", true), "context", array(), "any", false, true), "type", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getContext($context, "log", true), "context", array(), "any", false, true), "type"), 0)) : (0)))) {
  244. // line 94
  245. echo " DEPRECATION - ";
  246. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "message"), "html", null, true);
  247. echo "
  248. ";
  249. // line 95
  250. $context["id"] = ("sf-call-stack-" . $this->getContext($context, "log_index"));
  251. // line 96
  252. echo " <a href=\"#\" onclick=\"Sfjs.toggle('";
  253. echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
  254. echo "', document.getElementById('";
  255. echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
  256. echo "-on'), document.getElementById('";
  257. echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
  258. echo "-off')); return false;\">
  259. <img class=\"toggle\" id=\"";
  260. // line 97
  261. echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
  262. echo "-off\" alt=\"-\" src=\"data:image/gif;base64,R0lGODlhEgASAMQSANft94TG57Hb8GS44ez1+mC24IvK6ePx+Wa44dXs92+942e54o3L6W2844/M6dnu+P/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAAASABIAQAVCoCQBTBOd6Kk4gJhGBCTPxysJb44K0qD/ER/wlxjmisZkMqBEBW5NHrMZmVKvv9hMVsO+hE0EoNAstEYGxG9heIhCADs=\" style=\"display:none\" />
  263. <img class=\"toggle\" id=\"";
  264. // line 98
  265. echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
  266. echo "-on\" alt=\"+\" src=\"data:image/gif;base64,R0lGODlhEgASAMQTANft99/v+Ga44bHb8ITG52S44dXs9+z1+uPx+YvK6WC24G+944/M6W28443L6dnu+Ge54v/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABMALAAAAAASABIAQAVS4DQBTiOd6LkwgJgeUSzHSDoNaZ4PU6FLgYBA5/vFID/DbylRGiNIZu74I0h1hNsVxbNuUV4d9SsZM2EzWe1qThVzwWFOAFCQFa1RQq6DJB4iIQA7\" style=\"display:inline\" />
  267. </a>
  268. ";
  269. // line 100
  270. $context['_parent'] = (array) $context;
  271. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getContext($context, "log"), "context"), "stack"));
  272. foreach ($context['_seq'] as $context["index"] => $context["call"]) {
  273. if (($this->getContext($context, "index") > 1)) {
  274. // line 101
  275. echo " ";
  276. if (($this->getContext($context, "index") == 2)) {
  277. // line 102
  278. echo " <ul class=\"sf-call-stack\" id=\"";
  279. echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
  280. echo "\" style=\"display: none\">
  281. ";
  282. }
  283. // line 104
  284. echo " ";
  285. if ($this->getAttribute($this->getContext($context, "call", true), "class", array(), "any", true, true)) {
  286. // line 105
  287. echo " ";
  288. $context["from"] = (($this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, "call"), "class")) . "::") . $this->env->getExtension('code')->abbrMethod($this->getAttribute($this->getContext($context, "call"), "function")));
  289. // line 106
  290. echo " ";
  291. } elseif ($this->getAttribute($this->getContext($context, "call", true), "function", array(), "any", true, true)) {
  292. // line 107
  293. echo " ";
  294. $context["from"] = $this->env->getExtension('code')->abbrMethod($this->getAttribute($this->getContext($context, "call"), "function"));
  295. // line 108
  296. echo " ";
  297. } elseif ($this->getAttribute($this->getContext($context, "call", true), "file", array(), "any", true, true)) {
  298. // line 109
  299. echo " ";
  300. $context["from"] = $this->getAttribute($this->getContext($context, "call"), "file");
  301. // line 110
  302. echo " ";
  303. } else {
  304. // line 111
  305. echo " ";
  306. $context["from"] = "-";
  307. // line 112
  308. echo " ";
  309. }
  310. // line 113
  311. echo "
  312. <li>Called from ";
  313. // line 114
  314. echo ((($this->getAttribute($this->getContext($context, "call", true), "file", array(), "any", true, true) && $this->getAttribute($this->getContext($context, "call", true), "line", array(), "any", true, true))) ? ($this->env->getExtension('code')->formatFile($this->getAttribute($this->getContext($context, "call"), "file"), $this->getAttribute($this->getContext($context, "call"), "line"), $this->getContext($context, "from"))) : ($this->getContext($context, "from")));
  315. echo "</li>
  316. ";
  317. // line 116
  318. echo ((($this->getContext($context, "index") == (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "log"), "context"), "stack")) - 1))) ? ("</ul>") : (""));
  319. echo "
  320. ";
  321. }
  322. }
  323. $_parent = $context['_parent'];
  324. unset($context['_seq'], $context['_iterated'], $context['index'], $context['call'], $context['_parent'], $context['loop']);
  325. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  326. // line 118
  327. echo " ";
  328. } else {
  329. // line 119
  330. echo " ";
  331. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "priorityName"), "html", null, true);
  332. echo " - ";
  333. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "message"), "html", null, true);
  334. echo "
  335. ";
  336. }
  337. } catch (Exception $e) {
  338. ob_end_clean();
  339. throw $e;
  340. }
  341. return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  342. }
  343. public function getTemplateName()
  344. {
  345. return "@WebProfiler/Collector/logger.html.twig";
  346. }
  347. public function isTraitable()
  348. {
  349. return false;
  350. }
  351. public function getDebugInfo()
  352. {
  353. return array ( 332 => 116, 321 => 112, 318 => 111, 315 => 110, 312 => 109, 309 => 108, 300 => 105, 297 => 104, 291 => 102, 288 => 101, 283 => 100, 274 => 97, 258 => 94, 243 => 92, 235 => 85, 224 => 81, 202 => 77, 156 => 62, 136 => 48, 122 => 41, 119 => 40, 112 => 36, 109 => 35, 85 => 24, 58 => 14, 44 => 9, 178 => 66, 175 => 65, 154 => 60, 134 => 54, 125 => 42, 121 => 50, 118 => 49, 113 => 48, 102 => 40, 87 => 34, 49 => 11, 46 => 10, 27 => 3, 91 => 33, 63 => 18, 385 => 160, 382 => 159, 376 => 158, 374 => 157, 367 => 156, 363 => 155, 359 => 153, 357 => 152, 354 => 151, 349 => 149, 341 => 118, 336 => 145, 330 => 141, 324 => 113, 322 => 138, 317 => 135, 311 => 131, 308 => 130, 305 => 129, 303 => 106, 298 => 125, 289 => 120, 286 => 119, 284 => 118, 279 => 115, 277 => 114, 272 => 111, 270 => 110, 265 => 96, 261 => 105, 255 => 93, 251 => 101, 244 => 97, 237 => 93, 231 => 83, 228 => 88, 225 => 87, 223 => 86, 212 => 78, 209 => 78, 206 => 77, 204 => 76, 193 => 69, 190 => 76, 187 => 75, 185 => 74, 180 => 63, 174 => 65, 171 => 58, 168 => 57, 166 => 56, 159 => 53, 151 => 59, 148 => 46, 143 => 51, 140 => 58, 130 => 39, 116 => 31, 107 => 27, 103 => 25, 97 => 23, 88 => 25, 82 => 28, 76 => 31, 73 => 24, 70 => 15, 67 => 24, 61 => 15, 39 => 6, 36 => 5, 79 => 21, 47 => 8, 45 => 9, 40 => 11, 37 => 10, 22 => 1, 246 => 32, 164 => 58, 162 => 54, 157 => 56, 145 => 52, 139 => 49, 131 => 45, 115 => 39, 108 => 37, 106 => 36, 101 => 31, 98 => 30, 96 => 37, 92 => 27, 80 => 32, 74 => 14, 64 => 23, 55 => 13, 52 => 12, 50 => 14, 43 => 12, 41 => 8, 32 => 5, 29 => 6, 360 => 167, 351 => 150, 347 => 163, 344 => 119, 339 => 146, 337 => 160, 329 => 154, 327 => 114, 320 => 149, 313 => 145, 306 => 107, 299 => 137, 292 => 121, 285 => 129, 278 => 98, 263 => 95, 256 => 109, 249 => 100, 242 => 96, 232 => 93, 229 => 92, 221 => 86, 218 => 83, 213 => 82, 210 => 81, 205 => 78, 199 => 73, 191 => 67, 189 => 73, 179 => 68, 172 => 64, 165 => 60, 161 => 63, 158 => 62, 155 => 56, 147 => 53, 142 => 51, 138 => 50, 135 => 49, 132 => 48, 126 => 47, 123 => 35, 120 => 40, 117 => 39, 111 => 47, 104 => 32, 100 => 39, 93 => 31, 89 => 29, 86 => 28, 83 => 33, 75 => 19, 72 => 18, 69 => 17, 66 => 11, 60 => 6, 54 => 22, 51 => 12, 48 => 11, 42 => 7, 38 => 7, 35 => 6, 33 => 4, 30 => 3,);
  354. }
  355. }