/app/cache/dev/twig/d8/f2/ca039f4b8d9ec9dadbda9a728bcd.php

https://github.com/fabiorestrepo/PGE · PHP · 190 lines · 146 code · 16 blank · 28 comment · 9 complexity · 27d4545935e210fab5b3fbd1b2188354 MD5 · raw file

  1. <?php
  2. /* WebProfilerBundle:Collector:events.html.twig */
  3. class __TwigTemplate_d8f2ca039f4b8d9ec9dadbda9a728bcd extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->blocks = array(
  9. 'menu' => array($this, 'block_menu'),
  10. 'panel' => array($this, 'block_panel'),
  11. );
  12. }
  13. protected function doGetParent(array $context)
  14. {
  15. return "WebProfilerBundle:Profiler:layout.html.twig";
  16. }
  17. protected function doDisplay(array $context, array $blocks = array())
  18. {
  19. $context = array_merge($this->env->getGlobals(), $context);
  20. // line 3
  21. $context["__internal_d8f2ca039f4b8d9ec9dadbda9a728bcd_1"] = $this;
  22. $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
  23. }
  24. // line 5
  25. public function block_menu($context, array $blocks = array())
  26. {
  27. // line 6
  28. echo "<span class=\"label\">
  29. <span class=\"icon\"><img src=\"";
  30. // line 7
  31. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/events.png"), "html", null, true);
  32. echo "\" alt=\"Events\" /></span>
  33. <strong>Events</strong>
  34. </span>
  35. ";
  36. }
  37. // line 12
  38. public function block_panel($context, array $blocks = array())
  39. {
  40. // line 13
  41. echo " <h2>Called Listeners</h2>
  42. <table>
  43. <tr>
  44. <th>Event name</th>
  45. <th>Listener</th>
  46. </tr>
  47. ";
  48. // line 20
  49. $context['_parent'] = (array) $context;
  50. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "calledlisteners", array(), "any", false));
  51. foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
  52. // line 21
  53. echo " <tr>
  54. <td><code>";
  55. // line 22
  56. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "event", array(), "any", false), "html", null, true);
  57. echo "</code></td>
  58. <td><code>";
  59. // line 23
  60. echo twig_escape_filter($this->env, $this->getAttribute($context["__internal_d8f2ca039f4b8d9ec9dadbda9a728bcd_1"], "display_listener", array($this->getContext($context, "listener"), ), "method", false), "html", null, true);
  61. echo "</code></td>
  62. </tr>
  63. ";
  64. }
  65. $_parent = $context['_parent'];
  66. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
  67. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  68. // line 26
  69. echo " </table>
  70. ";
  71. // line 28
  72. if ($this->getAttribute($this->getContext($context, "collector"), "notcalledlisteners", array(), "any", false)) {
  73. // line 29
  74. echo " <h2>Not Called Listeners</h2>
  75. <table>
  76. <tr>
  77. <th>Event name</th>
  78. <th>Listener</th>
  79. </tr>
  80. ";
  81. // line 36
  82. $context["listeners"] = $this->getAttribute($this->getContext($context, "collector"), "notcalledlisteners", array(), "any", false);
  83. // line 37
  84. echo " ";
  85. $context['_parent'] = (array) $context;
  86. $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, "listeners"))));
  87. foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
  88. // line 38
  89. echo " <tr>
  90. <td><code>";
  91. // line 39
  92. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "listeners"), $this->getContext($context, "listener"), array(), "array", false), "event", array(), "any", false), "html", null, true);
  93. echo "</code></td>
  94. <td><code>";
  95. // line 40
  96. echo twig_escape_filter($this->env, $this->getAttribute($context["__internal_d8f2ca039f4b8d9ec9dadbda9a728bcd_1"], "display_listener", array($this->getAttribute($this->getContext($context, "listeners"), $this->getContext($context, "listener"), array(), "array", false), ), "method", false), "html", null, true);
  97. echo "</code></td>
  98. </tr>
  99. ";
  100. }
  101. $_parent = $context['_parent'];
  102. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
  103. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  104. // line 43
  105. echo " </table>
  106. ";
  107. }
  108. }
  109. // line 47
  110. public function getdisplay_listener($listener = null)
  111. {
  112. $context = array_merge($this->env->getGlobals(), array(
  113. "listener" => $listener,
  114. ));
  115. ob_start();
  116. try {
  117. // line 48
  118. echo " ";
  119. if (($this->getAttribute($this->getContext($context, "listener"), "type", array(), "any", false) == "Closure")) {
  120. // line 49
  121. echo " Closure
  122. ";
  123. } elseif (($this->getAttribute($this->getContext($context, "listener"), "type", array(), "any", false) == "Function")) {
  124. // line 51
  125. echo " ";
  126. $context["link"] = $this->env->getExtension('code')->getFileLink($this->getAttribute($this->getContext($context, "listener"), "file", array(), "any", false), $this->getAttribute($this->getContext($context, "listener"), "line", array(), "any", false));
  127. // line 52
  128. echo " ";
  129. if ($this->getContext($context, "link")) {
  130. echo "<a href=\"";
  131. echo twig_escape_filter($this->env, $this->getContext($context, "link"), "html", null, true);
  132. echo "\">";
  133. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "function", array(), "any", false), "html", null, true);
  134. echo "</a>";
  135. } else {
  136. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "function", array(), "any", false), "html", null, true);
  137. }
  138. // line 53
  139. echo " ";
  140. } elseif (($this->getAttribute($this->getContext($context, "listener"), "type", array(), "any", false) == "Method")) {
  141. // line 54
  142. echo " ";
  143. $context["link"] = $this->env->getExtension('code')->getFileLink($this->getAttribute($this->getContext($context, "listener"), "file", array(), "any", false), $this->getAttribute($this->getContext($context, "listener"), "line", array(), "any", false));
  144. // line 55
  145. echo " ";
  146. echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, "listener"), "class", array(), "any", false));
  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"), "method", array(), "any", false), "html", null, true);
  153. echo "</a>";
  154. } else {
  155. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "method", array(), "any", false), "html", null, true);
  156. }
  157. // line 56
  158. echo " ";
  159. }
  160. } catch(Exception $e) {
  161. ob_end_clean();
  162. throw $e;
  163. }
  164. return ob_get_clean();
  165. }
  166. public function getTemplateName()
  167. {
  168. return "WebProfilerBundle:Collector:events.html.twig";
  169. }
  170. public function isTraitable()
  171. {
  172. return false;
  173. }
  174. }