/app/cache/dev/twig/d4/a9/51a457e2dae3abdea4712fecfbc1.php
PHP | 229 lines | 176 code | 19 blank | 34 comment | 11 complexity | 5af82bc6f3f3ef86b21be9c0196aca44 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0, BSD-3-Clause, BSD-2-Clause
- <?php
- /* WebProfilerBundle:Collector:events.html.twig */
- class __TwigTemplate_d4a951a457e2dae3abdea4712fecfbc1 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->parent = $this->env->loadTemplate("WebProfilerBundle:Profiler:layout.html.twig");
- $this->blocks = array(
- 'menu' => array($this, 'block_menu'),
- 'panel' => array($this, 'block_panel'),
- 'panelContent' => array($this, 'block_panelContent'),
- );
- }
- protected function doGetParent(array $context)
- {
- return "WebProfilerBundle:Profiler:layout.html.twig";
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- // line 3
- $context["__internal_2ed9e36e88ab0cbea5cbad052a2c2b36bd752a5f"] = $this;
- $this->parent->display($context, array_merge($this->blocks, $blocks));
- }
- // line 5
- public function block_menu($context, array $blocks = array())
- {
- // line 6
- echo "<span class=\"label\">
- <span class=\"icon\"><img src=\"";
- // line 7
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/events.png"), "html", null, true);
- echo "\" alt=\"Events\" /></span>
- <strong>Events</strong>
- </span>
- ";
- }
- // line 12
- public function block_panel($context, array $blocks = array())
- {
- // line 13
- echo " ";
- if (twig_length_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "calledlisteners"))) {
- // line 14
- echo " ";
- $this->displayBlock("panelContent", $context, $blocks);
- echo "
- ";
- } else {
- // line 16
- echo " <h2>Events</h2>
- <p>
- <em>No events have been recorded. Are you sure that debugging is enabled in the kernel?</em>
- </p>
- ";
- }
- }
- // line 23
- public function block_panelContent($context, array $blocks = array())
- {
- // line 24
- echo " <h2>Called Listeners</h2>
- <table>
- <tr>
- <th>Event name</th>
- <th>Priority</th>
- <th>Listener</th>
- </tr>
- ";
- // line 32
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "calledlisteners"));
- foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
- // line 33
- echo " <tr>
- <td><code>";
- // line 34
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "event"), "html", null, true);
- echo "</code></td>
- <td><code>";
- // line 35
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "priority"), "html", null, true);
- echo "</code></td>
- <td><code>";
- // line 36
- echo $context["__internal_2ed9e36e88ab0cbea5cbad052a2c2b36bd752a5f"]->getdisplay_listener((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")));
- echo "</code></td>
- </tr>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 39
- echo " </table>
- ";
- // line 41
- if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "notcalledlisteners")) {
- // line 42
- echo " <h2>Not Called Listeners</h2>
- <table>
- <tr>
- <th>Event name</th>
- <th>Priority</th>
- <th>Listener</th>
- </tr>
- ";
- // line 50
- $context["listeners"] = $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "notcalledlisteners");
- // line 51
- echo " ";
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter((isset($context["listeners"]) ? $context["listeners"] : $this->getContext($context, "listeners")))));
- foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
- // line 52
- echo " <tr>
- <td><code>";
- // line 53
- 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);
- echo "</code></td>
- <td><code>";
- // line 54
- 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"), "priority"), "html", null, true);
- echo "</code></td>
- <td><code>";
- // line 55
- echo $context["__internal_2ed9e36e88ab0cbea5cbad052a2c2b36bd752a5f"]->getdisplay_listener($this->getAttribute((isset($context["listeners"]) ? $context["listeners"] : $this->getContext($context, "listeners")), (isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), array(), "array"));
- echo "</code></td>
- </tr>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 58
- echo " </table>
- ";
- }
- }
- // line 62
- public function getdisplay_listener($_listener = null)
- {
- $context = $this->env->mergeGlobals(array(
- "listener" => $_listener,
- ));
- $blocks = array();
- ob_start();
- try {
- // line 63
- echo " ";
- if (($this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "type") == "Closure")) {
- // line 64
- echo " Closure
- ";
- } elseif (($this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "type") == "Function")) {
- // line 66
- echo " ";
- $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"));
- // line 67
- echo " ";
- if ((isset($context["link"]) ? $context["link"] : $this->getContext($context, "link"))) {
- echo "<a href=\"";
- echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "function"), "html", null, true);
- echo "</a>";
- } else {
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "function"), "html", null, true);
- }
- // line 68
- echo " ";
- } elseif (($this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "type") == "Method")) {
- // line 69
- echo " ";
- $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"));
- // line 70
- echo " ";
- echo $this->env->getExtension('code')->abbrClass($this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "class"));
- echo "::";
- if ((isset($context["link"]) ? $context["link"] : $this->getContext($context, "link"))) {
- echo "<a href=\"";
- echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "method"), "html", null, true);
- echo "</a>";
- } else {
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener")), "method"), "html", null, true);
- }
- // line 71
- echo " ";
- }
- } catch (Exception $e) {
- ob_end_clean();
- throw $e;
- }
- return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- }
- public function getTemplateName()
- {
- return "WebProfilerBundle:Collector:events.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 204 => 71, 191 => 70, 185 => 68, 167 => 64, 164 => 63, 153 => 62, 147 => 58, 138 => 55, 134 => 54, 127 => 52, 122 => 51, 95 => 36, 91 => 35, 87 => 34, 84 => 33, 49 => 13, 27 => 3, 77 => 24, 71 => 21, 68 => 20, 62 => 16, 58 => 16, 56 => 13, 44 => 8, 388 => 160, 385 => 159, 379 => 158, 377 => 157, 370 => 156, 366 => 155, 362 => 153, 360 => 152, 357 => 151, 354 => 150, 352 => 149, 344 => 147, 342 => 146, 339 => 145, 330 => 140, 327 => 139, 320 => 135, 314 => 131, 311 => 130, 308 => 129, 306 => 128, 301 => 125, 292 => 120, 289 => 119, 287 => 118, 282 => 115, 280 => 114, 275 => 111, 273 => 110, 268 => 107, 264 => 105, 258 => 103, 254 => 101, 247 => 97, 240 => 93, 234 => 89, 231 => 88, 226 => 86, 221 => 83, 215 => 79, 212 => 78, 209 => 77, 207 => 76, 202 => 73, 196 => 69, 193 => 68, 190 => 67, 188 => 69, 183 => 63, 177 => 59, 174 => 67, 171 => 66, 169 => 56, 162 => 53, 143 => 43, 130 => 53, 107 => 27, 103 => 25, 97 => 23, 88 => 20, 82 => 19, 79 => 18, 76 => 17, 73 => 16, 67 => 23, 61 => 12, 47 => 9, 36 => 5, 70 => 24, 63 => 9, 46 => 12, 39 => 6, 22 => 1, 163 => 32, 155 => 50, 152 => 49, 149 => 48, 145 => 46, 139 => 45, 123 => 35, 120 => 50, 115 => 39, 111 => 38, 108 => 41, 106 => 36, 101 => 33, 98 => 32, 96 => 31, 92 => 21, 80 => 32, 74 => 22, 64 => 19, 55 => 9, 52 => 14, 50 => 10, 43 => 9, 41 => 8, 37 => 8, 32 => 5, 29 => 6, 356 => 163, 347 => 160, 343 => 159, 340 => 158, 335 => 157, 333 => 141, 325 => 138, 323 => 149, 316 => 145, 309 => 141, 302 => 137, 295 => 121, 288 => 129, 281 => 125, 274 => 121, 259 => 109, 252 => 100, 245 => 96, 238 => 97, 228 => 87, 225 => 88, 217 => 83, 214 => 82, 211 => 81, 206 => 78, 203 => 77, 198 => 74, 192 => 72, 184 => 70, 182 => 69, 172 => 64, 165 => 54, 158 => 56, 154 => 48, 151 => 47, 148 => 46, 140 => 42, 135 => 47, 131 => 42, 128 => 45, 125 => 44, 119 => 43, 116 => 31, 113 => 40, 110 => 42, 104 => 39, 100 => 24, 93 => 31, 89 => 29, 86 => 29, 83 => 28, 75 => 23, 72 => 22, 69 => 20, 66 => 20, 60 => 8, 54 => 6, 51 => 12, 48 => 15, 42 => 7, 38 => 7, 35 => 6, 33 => 4, 30 => 3,);
- }
- }