PageRenderTime 57ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/app/cache/dev/twig/f9/d4/7e6de3233e2342a1f6301a640750.php

https://github.com/modernfidelity/Symfony2-RESTAPI
PHP | 216 lines | 165 code | 19 blank | 32 comment | 11 complexity | 52d9be3c287bba8d7542f2ef3ca9e203 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/events.html.twig */
  3. class __TwigTemplate_f9d47e6de3233e2342a1f6301a640750 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. 'menu' => array($this, 'block_menu'),
  11. 'panel' => array($this, 'block_panel'),
  12. 'panelContent' => array($this, 'block_panelContent'),
  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["__internal_6c5bd1fdba95add94fbcacb4749b0a6a6bdbd943"] = $this;
  23. $this->parent->display($context, array_merge($this->blocks, $blocks));
  24. }
  25. // line 5
  26. public function block_menu($context, array $blocks = array())
  27. {
  28. // line 6
  29. echo "<span class=\"label\">
  30. <span class=\"icon\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAiCAQAAADragGFAAAD60lEQVR42o2UfUxbVRjGb7fy4ah2QwdECSgjEpcYUP8hmtiWljbt+Gih62zGVqBjXkqgVcYQKzNLJF1HBxt0S9YMgqHVLt1oZRqidcpcgQ1dMpkxgyVK2NSYyWTAJoPB4/1g0iLQnZub+348v3vOPe95L/FogFO+pbBMbtPmgEsEDXC1OXJbYVn5FnBoPwg4wVfVCc7J3WRToxoxIbmYRjXZJHcLzqnqTvAZkEUsSfI2iddxCHtR8L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vUZX618UFpIDvqMM6gAAAABJRU5ErkJggg==\" alt=\"Events\" /></span>
  31. <strong>Events</strong>
  32. </span>
  33. ";
  34. }
  35. // line 12
  36. public function block_panel($context, array $blocks = array())
  37. {
  38. // line 13
  39. echo " ";
  40. if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "calledlisteners"))) {
  41. // line 14
  42. echo " ";
  43. $this->displayBlock("panelContent", $context, $blocks);
  44. echo "
  45. ";
  46. } else {
  47. // line 16
  48. echo " <h2>Events</h2>
  49. <p>
  50. <em>No events have been recorded. Are you sure that debugging is enabled in the kernel?</em>
  51. </p>
  52. ";
  53. }
  54. }
  55. // line 23
  56. public function block_panelContent($context, array $blocks = array())
  57. {
  58. // line 24
  59. echo " <h2>Called Listeners</h2>
  60. <table>
  61. <tr>
  62. <th>Event name</th>
  63. <th>Listener</th>
  64. </tr>
  65. ";
  66. // line 31
  67. $context['_parent'] = (array) $context;
  68. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "calledlisteners"));
  69. foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
  70. // line 32
  71. echo " <tr>
  72. <td><code>";
  73. // line 33
  74. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "event"), "html", null, true);
  75. echo "</code></td>
  76. <td><code>";
  77. // line 34
  78. echo $context["__internal_6c5bd1fdba95add94fbcacb4749b0a6a6bdbd943"]->getdisplay_listener($this->getContext($context, "listener"));
  79. echo "</code></td>
  80. </tr>
  81. ";
  82. }
  83. $_parent = $context['_parent'];
  84. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
  85. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  86. // line 37
  87. echo " </table>
  88. ";
  89. // line 39
  90. if ($this->getAttribute($this->getContext($context, "collector"), "notcalledlisteners")) {
  91. // line 40
  92. echo " <h2>Not Called Listeners</h2>
  93. <table>
  94. <tr>
  95. <th>Event name</th>
  96. <th>Listener</th>
  97. </tr>
  98. ";
  99. // line 47
  100. $context["listeners"] = $this->getAttribute($this->getContext($context, "collector"), "notcalledlisteners");
  101. // line 48
  102. echo " ";
  103. $context['_parent'] = (array) $context;
  104. $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, "listeners"))));
  105. foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
  106. // line 49
  107. echo " <tr>
  108. <td><code>";
  109. // line 50
  110. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "listeners"), $this->getContext($context, "listener"), array(), "array"), "event"), "html", null, true);
  111. echo "</code></td>
  112. <td><code>";
  113. // line 51
  114. echo $context["__internal_6c5bd1fdba95add94fbcacb4749b0a6a6bdbd943"]->getdisplay_listener($this->getAttribute($this->getContext($context, "listeners"), $this->getContext($context, "listener"), array(), "array"));
  115. echo "</code></td>
  116. </tr>
  117. ";
  118. }
  119. $_parent = $context['_parent'];
  120. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
  121. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  122. // line 54
  123. echo " </table>
  124. ";
  125. }
  126. }
  127. // line 58
  128. public function getdisplay_listener($_listener = null)
  129. {
  130. $context = $this->env->mergeGlobals(array(
  131. "listener" => $_listener,
  132. ));
  133. $blocks = array();
  134. ob_start();
  135. try {
  136. // line 59
  137. echo " ";
  138. if (($this->getAttribute($this->getContext($context, "listener"), "type") == "Closure")) {
  139. // line 60
  140. echo " Closure
  141. ";
  142. } elseif (($this->getAttribute($this->getContext($context, "listener"), "type") == "Function")) {
  143. // line 62
  144. echo " ";
  145. $context["link"] = $this->env->getExtension('code')->getFileLink($this->getAttribute($this->getContext($context, "listener"), "file"), $this->getAttribute($this->getContext($context, "listener"), "line"));
  146. // line 63
  147. echo " ";
  148. if ($this->getContext($context, "link")) {
  149. echo "<a href=\"";
  150. echo twig_escape_filter($this->env, $this->getContext($context, "link"), "html", null, true);
  151. echo "\">";
  152. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "function"), "html", null, true);
  153. echo "</a>";
  154. } else {
  155. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "function"), "html", null, true);
  156. }
  157. // line 64
  158. echo " ";
  159. } elseif (($this->getAttribute($this->getContext($context, "listener"), "type") == "Method")) {
  160. // line 65
  161. echo " ";
  162. $context["link"] = $this->env->getExtension('code')->getFileLink($this->getAttribute($this->getContext($context, "listener"), "file"), $this->getAttribute($this->getContext($context, "listener"), "line"));
  163. // line 66
  164. echo " ";
  165. echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, "listener"), "class"));
  166. echo "::";
  167. if ($this->getContext($context, "link")) {
  168. echo "<a href=\"";
  169. echo twig_escape_filter($this->env, $this->getContext($context, "link"), "html", null, true);
  170. echo "\">";
  171. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "method"), "html", null, true);
  172. echo "</a>";
  173. } else {
  174. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "method"), "html", null, true);
  175. }
  176. // line 67
  177. echo " ";
  178. }
  179. } catch (Exception $e) {
  180. ob_end_clean();
  181. throw $e;
  182. }
  183. return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  184. }
  185. public function getTemplateName()
  186. {
  187. return "@WebProfiler/Collector/events.html.twig";
  188. }
  189. public function isTraitable()
  190. {
  191. return false;
  192. }
  193. public function getDebugInfo()
  194. {
  195. return array ( 178 => 66, 175 => 65, 154 => 60, 134 => 54, 125 => 51, 121 => 50, 118 => 49, 113 => 48, 102 => 40, 87 => 34, 49 => 14, 46 => 13, 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 => 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 => 59, 148 => 46, 143 => 43, 140 => 58, 130 => 39, 116 => 31, 107 => 27, 103 => 25, 97 => 23, 88 => 32, 82 => 28, 76 => 31, 73 => 24, 70 => 15, 67 => 24, 61 => 17, 39 => 6, 36 => 5, 79 => 18, 47 => 8, 45 => 9, 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 => 37, 92 => 21, 80 => 32, 74 => 14, 64 => 23, 55 => 16, 52 => 12, 50 => 14, 43 => 12, 41 => 8, 32 => 5, 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 => 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 => 43, 111 => 47, 104 => 36, 100 => 39, 93 => 31, 89 => 29, 86 => 28, 83 => 33, 75 => 23, 72 => 13, 69 => 12, 66 => 11, 60 => 6, 54 => 22, 51 => 12, 48 => 11, 42 => 7, 38 => 6, 35 => 6, 33 => 4, 30 => 3,);
  196. }
  197. }