PageRenderTime 45ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/app/cache/dev/twig/c0/3b/66aec85f9b36f54b6eefa05104fe44c46916c1998be6c40a8786fd423b54.php

https://github.com/djae138/symfony
PHP | 216 lines | 165 code | 19 blank | 32 comment | 11 complexity | e39aa3e3b6aaa89c3b4cc178991f3c85 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?php
  2. /* @WebProfiler/Collector/events.html.twig */
  3. class __TwigTemplate_c03b66aec85f9b36f54b6eefa05104fe44c46916c1998be6c40a8786fd423b54 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_7745b8b8e29aefee02a7ac71bcaa8c3e56f78cb9c7ce2be573e56c717195a540"] = $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+pbBMbtPmgEsEDXC1OXJbYVn5FnBoPwg4wVfVCc7J3WRToxoxIbmYRjXZJHcLzqnqTvAZkEUsSfI2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nQWUeZl84OvUZX618UFpIDvqMM6gAAAABJRU5ErkJggg==\" 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((isset($context["collector"]) ? $context["collector"] : $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((isset($context["collector"]) ? $context["collector"] : $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((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "event"), "html", null, true);
  75. echo "</code></td>
  76. <td><code>";
  77. // line 34
  78. echo $context["__internal_7745b8b8e29aefee02a7ac71bcaa8c3e56f78cb9c7ce2be573e56c717195a540"]->getdisplay_listener((isset($context["listener"]) ? $context["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_intersect_key($context, $_parent) + $_parent;
  86. // line 37
  87. echo " </table>
  88. ";
  89. // line 39
  90. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $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((isset($context["collector"]) ? $context["collector"] : $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((isset($context["listeners"]) ? $context["listeners"] : $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((isset($context["listeners"]) ? $context["listeners"] : $this->getContext($context, "listeners")), (isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), array(), "array"), "event"), "html", null, true);
  111. echo "</code></td>
  112. <td><code>";
  113. // line 51
  114. echo $context["__internal_7745b8b8e29aefee02a7ac71bcaa8c3e56f78cb9c7ce2be573e56c717195a540"]->getdisplay_listener($this->getAttribute((isset($context["listeners"]) ? $context["listeners"] : $this->getContext($context, "listeners")), (isset($context["listener"]) ? $context["listener"] : $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_intersect_key($context, $_parent) + $_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((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "type") == "Closure")) {
  139. // line 60
  140. echo " Closure
  141. ";
  142. } elseif (($this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "type") == "Function")) {
  143. // line 62
  144. echo " ";
  145. $context["link"] = $this->env->getExtension('code')->getFileLink($this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "file"), $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "line"));
  146. // line 63
  147. echo " ";
  148. if ((isset($context["link"]) ? $context["link"] : $this->getContext($context, "link"))) {
  149. echo "<a href=\"";
  150. echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")), "html", null, true);
  151. echo "\">";
  152. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "function"), "html", null, true);
  153. echo "</a>";
  154. } else {
  155. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "function"), "html", null, true);
  156. }
  157. // line 64
  158. echo " ";
  159. } elseif (($this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "type") == "Method")) {
  160. // line 65
  161. echo " ";
  162. $context["link"] = $this->env->getExtension('code')->getFileLink($this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "file"), $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "line"));
  163. // line 66
  164. echo " ";
  165. echo $this->env->getExtension('code')->abbrClass($this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "class"));
  166. echo "::";
  167. if ((isset($context["link"]) ? $context["link"] : $this->getContext($context, "link"))) {
  168. echo "<a href=\"";
  169. echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")), "html", null, true);
  170. echo "\">";
  171. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "method"), "html", null, true);
  172. echo "</a>";
  173. } else {
  174. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $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 ( 161 => 63, 158 => 62, 154 => 60, 151 => 59, 140 => 58, 125 => 51, 121 => 50, 118 => 49, 100 => 39, 87 => 34, 49 => 14, 46 => 13, 27 => 3, 91 => 33, 88 => 32, 63 => 18, 389 => 160, 386 => 159, 378 => 157, 371 => 156, 367 => 155, 363 => 153, 358 => 151, 353 => 149, 345 => 147, 343 => 146, 340 => 145, 334 => 141, 331 => 140, 328 => 139, 326 => 138, 321 => 135, 309 => 129, 307 => 128, 302 => 125, 296 => 121, 293 => 120, 290 => 119, 288 => 118, 283 => 115, 281 => 114, 276 => 111, 274 => 110, 269 => 107, 265 => 105, 259 => 103, 255 => 101, 253 => 100, 235 => 89, 232 => 88, 227 => 86, 222 => 83, 210 => 77, 208 => 76, 189 => 66, 184 => 63, 175 => 65, 170 => 56, 166 => 54, 163 => 53, 155 => 47, 152 => 46, 144 => 42, 127 => 35, 109 => 27, 94 => 21, 82 => 28, 76 => 31, 61 => 17, 39 => 6, 36 => 5, 79 => 18, 72 => 13, 69 => 12, 54 => 22, 47 => 8, 42 => 7, 40 => 11, 37 => 10, 22 => 1, 164 => 58, 157 => 56, 145 => 46, 139 => 45, 131 => 42, 120 => 31, 115 => 39, 111 => 47, 108 => 37, 106 => 36, 101 => 33, 98 => 32, 92 => 29, 83 => 33, 80 => 32, 74 => 14, 66 => 11, 60 => 6, 55 => 16, 52 => 12, 50 => 14, 41 => 8, 32 => 5, 29 => 6, 462 => 202, 453 => 199, 449 => 198, 446 => 197, 441 => 196, 439 => 195, 431 => 189, 429 => 188, 422 => 184, 415 => 180, 408 => 176, 401 => 172, 394 => 168, 387 => 164, 380 => 158, 373 => 156, 361 => 152, 355 => 150, 351 => 141, 348 => 140, 342 => 137, 338 => 135, 335 => 134, 329 => 131, 325 => 129, 323 => 128, 320 => 127, 315 => 131, 312 => 130, 303 => 122, 300 => 121, 298 => 120, 289 => 113, 286 => 112, 278 => 106, 275 => 105, 270 => 102, 267 => 101, 262 => 98, 256 => 96, 248 => 97, 246 => 96, 241 => 93, 233 => 87, 229 => 87, 226 => 84, 220 => 81, 216 => 79, 213 => 78, 207 => 75, 203 => 73, 200 => 72, 197 => 69, 194 => 68, 191 => 67, 185 => 66, 181 => 65, 178 => 66, 176 => 63, 172 => 64, 168 => 61, 165 => 60, 162 => 57, 156 => 58, 153 => 56, 150 => 55, 147 => 43, 141 => 51, 134 => 54, 130 => 46, 123 => 41, 119 => 40, 116 => 39, 113 => 48, 105 => 25, 102 => 40, 99 => 23, 96 => 37, 90 => 20, 84 => 24, 81 => 23, 73 => 24, 70 => 15, 67 => 24, 64 => 23, 59 => 14, 53 => 12, 45 => 9, 43 => 12, 38 => 6, 35 => 6, 33 => 4, 30 => 3,);
  196. }
  197. }