/app/cache/dev/twig/2f/e3/03bf487ffaf7fec854f4fa37ded4.php
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
- <?php
- /* @WebProfiler/Collector/logger.html.twig */
- class __TwigTemplate_2fe303bf487ffaf7fec854f4fa37ded4 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->parent = $this->env->loadTemplate("@WebProfiler/Profiler/layout.html.twig");
- $this->blocks = array(
- 'toolbar' => array($this, 'block_toolbar'),
- 'menu' => array($this, 'block_menu'),
- 'panel' => array($this, 'block_panel'),
- );
- }
- protected function doGetParent(array $context)
- {
- return "@WebProfiler/Profiler/layout.html.twig";
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- // line 3
- $context["logger"] = $this;
- $this->parent->display($context, array_merge($this->blocks, $blocks));
- }
- // line 5
- public function block_toolbar($context, array $blocks = array())
- {
- // line 6
- echo " ";
- if (($this->getAttribute($this->getContext($context, "collector"), "counterrors") || $this->getAttribute($this->getContext($context, "collector"), "countdeprecations"))) {
- // line 7
- echo " ";
- ob_start();
- // line 8
- 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==\"/>
- ";
- // line 9
- if ($this->getAttribute($this->getContext($context, "collector"), "counterrors")) {
- // line 10
- echo " ";
- $context["status_color"] = "red";
- // line 11
- echo " ";
- } else {
- // line 12
- echo " ";
- $context["status_color"] = "yellow";
- // line 13
- echo " ";
- }
- // line 14
- echo " ";
- $context["error_count"] = ($this->getAttribute($this->getContext($context, "collector"), "counterrors") + $this->getAttribute($this->getContext($context, "collector"), "countdeprecations"));
- // line 15
- echo " <span class=\"sf-toolbar-status sf-toolbar-status-";
- echo twig_escape_filter($this->env, $this->getContext($context, "status_color"), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $this->getContext($context, "error_count"), "html", null, true);
- echo "</span>
- ";
- $context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- // line 17
- echo " ";
- ob_start();
- // line 18
- echo " ";
- if ($this->getAttribute($this->getContext($context, "collector"), "counterrors")) {
- // line 19
- echo " <div class=\"sf-toolbar-info-piece\">
- <b>Exception</b>
- <span class=\"sf-toolbar-status sf-toolbar-status-red\">";
- // line 21
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "counterrors"), "html", null, true);
- echo "</span>
- </div>
- ";
- }
- // line 24
- echo " ";
- if ($this->getAttribute($this->getContext($context, "collector"), "countdeprecations")) {
- // line 25
- echo " <div class=\"sf-toolbar-info-piece\">
- <b>Deprecated Calls</b>
- <span class=\"sf-toolbar-status sf-toolbar-status-yellow\">";
- // line 27
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "countdeprecations"), "html", null, true);
- echo "</span>
- </div>
- ";
- }
- // line 30
- echo " ";
- $context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- // line 31
- echo " ";
- $this->env->loadTemplate("@WebProfiler/Profiler/toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, "profiler_url"))));
- // line 32
- echo " ";
- }
- }
- // line 35
- public function block_menu($context, array $blocks = array())
- {
- // line 36
- echo "<span class=\"label\">
- <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>
- <strong>Logs</strong>
- ";
- // line 39
- if (($this->getAttribute($this->getContext($context, "collector"), "counterrors") || $this->getAttribute($this->getContext($context, "collector"), "countdeprecations"))) {
- // line 40
- echo " ";
- $context["error_count"] = ($this->getAttribute($this->getContext($context, "collector"), "counterrors") + $this->getAttribute($this->getContext($context, "collector"), "countdeprecations"));
- // line 41
- echo " <span class=\"count\">
- <span>";
- // line 42
- echo twig_escape_filter($this->env, $this->getContext($context, "error_count"), "html", null, true);
- echo "</span>
- </span>
- ";
- }
- // line 45
- echo "</span>
- ";
- }
- // line 48
- public function block_panel($context, array $blocks = array())
- {
- // line 49
- echo " <h2>Logs</h2>
- ";
- // line 51
- $context["priority"] = $this->getAttribute($this->getAttribute($this->getContext($context, "request"), "query"), "get", array(0 => "priority", 1 => 0), "method");
- // line 52
- echo "
- <table>
- <tr>
- <th>Filter</th>
- <td>
- <form id=\"priority-form\" action=\"\" method=\"get\" style=\"display: inline\">
- <input type=\"hidden\" name=\"panel\" value=\"logger\" />
- <label for=\"priority\">Priority</label>
- <select id=\"priority\" name=\"priority\" onchange=\"document.getElementById('priority-form').submit(); \">
- ";
- // line 62
- echo " ";
- $context['_parent'] = (array) $context;
- $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"));
- foreach ($context['_seq'] as $context["value"] => $context["text"]) {
- // line 63
- echo " <option value=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
- echo "\"";
- echo ((($this->getContext($context, "value") == $this->getContext($context, "priority"))) ? (" selected") : (""));
- echo ">";
- echo twig_escape_filter($this->env, $this->getContext($context, "text"), "html", null, true);
- echo "</option>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['value'], $context['text'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 65
- echo " </select>
- <noscript>
- <input type=\"submit\" value=\"refresh\" />
- </noscript>
- </form>
- </td>
- </tr>
- </table>
- ";
- // line 74
- if ($this->getAttribute($this->getContext($context, "collector"), "logs")) {
- // line 75
- echo " <ul class=\"alt\">
- ";
- // line 76
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "logs"));
- $context['_iterated'] = false;
- $context['loop'] = array(
- 'parent' => $context['_parent'],
- 'index0' => 0,
- 'index' => 1,
- 'first' => true,
- );
- foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
- 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"))))) {
- // line 77
- echo " <li class=\"";
- echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
- if (($this->getAttribute($this->getContext($context, "log"), "priority") >= 400)) {
- echo " error";
- } elseif (($this->getAttribute($this->getContext($context, "log"), "priority") >= 300)) {
- echo " warning";
- }
- echo "\">
- ";
- // line 78
- echo $context["logger"]->getdisplay_message($this->getAttribute($this->getContext($context, "loop"), "index"), $this->getContext($context, "log"));
- echo "
- </li>
- ";
- $context['_iterated'] = true;
- ++$context['loop']['index0'];
- ++$context['loop']['index'];
- $context['loop']['first'] = false;
- }
- }
- if (!$context['_iterated']) {
- // line 81
- echo " <li><em>No logs available for this priority.</em></li>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 83
- echo " </ul>
- ";
- } else {
- // line 85
- echo " <p>
- <em>No logs available.</em>
- </p>
- ";
- }
- }
- // line 92
- public function getdisplay_message($_log_index = null, $_log = null)
- {
- $context = $this->env->mergeGlobals(array(
- "log_index" => $_log_index,
- "log" => $_log,
- ));
- $blocks = array();
- ob_start();
- try {
- // line 93
- echo " ";
- 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)))) {
- // line 94
- echo " DEPRECATION - ";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "message"), "html", null, true);
- echo "
- ";
- // line 95
- $context["id"] = ("sf-call-stack-" . $this->getContext($context, "log_index"));
- // line 96
- echo " <a href=\"#\" onclick=\"Sfjs.toggle('";
- echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
- echo "', document.getElementById('";
- echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
- echo "-on'), document.getElementById('";
- echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
- echo "-off')); return false;\">
- <img class=\"toggle\" id=\"";
- // line 97
- echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
- echo "-off\" alt=\"-\" src=\"data:image/gif;base64,R0lGODlhEgASAMQSANft94TG57Hb8GS44ez1+mC24IvK6ePx+Wa44dXs92+942e54o3L6W2844/M6dnu+P/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAAASABIAQAVCoCQBTBOd6Kk4gJhGBCTPxysJb44K0qD/ER/wlxjmisZkMqBEBW5NHrMZmVKvv9hMVsO+hE0EoNAstEYGxG9heIhCADs=\" style=\"display:none\" />
- <img class=\"toggle\" id=\"";
- // line 98
- echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
- echo "-on\" alt=\"+\" src=\"data:image/gif;base64,R0lGODlhEgASAMQTANft99/v+Ga44bHb8ITG52S44dXs9+z1+uPx+YvK6WC24G+944/M6W28443L6dnu+Ge54v/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABMALAAAAAASABIAQAVS4DQBTiOd6LkwgJgeUSzHSDoNaZ4PU6FLgYBA5/vFID/DbylRGiNIZu74I0h1hNsVxbNuUV4d9SsZM2EzWe1qThVzwWFOAFCQFa1RQq6DJB4iIQA7\" style=\"display:inline\" />
- </a>
- ";
- // line 100
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getContext($context, "log"), "context"), "stack"));
- foreach ($context['_seq'] as $context["index"] => $context["call"]) {
- if (($this->getContext($context, "index") > 1)) {
- // line 101
- echo " ";
- if (($this->getContext($context, "index") == 2)) {
- // line 102
- echo " <ul class=\"sf-call-stack\" id=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "id"), "html", null, true);
- echo "\" style=\"display: none\">
- ";
- }
- // line 104
- echo " ";
- if ($this->getAttribute($this->getContext($context, "call", true), "class", array(), "any", true, true)) {
- // line 105
- echo " ";
- $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")));
- // line 106
- echo " ";
- } elseif ($this->getAttribute($this->getContext($context, "call", true), "function", array(), "any", true, true)) {
- // line 107
- echo " ";
- $context["from"] = $this->env->getExtension('code')->abbrMethod($this->getAttribute($this->getContext($context, "call"), "function"));
- // line 108
- echo " ";
- } elseif ($this->getAttribute($this->getContext($context, "call", true), "file", array(), "any", true, true)) {
- // line 109
- echo " ";
- $context["from"] = $this->getAttribute($this->getContext($context, "call"), "file");
- // line 110
- echo " ";
- } else {
- // line 111
- echo " ";
- $context["from"] = "-";
- // line 112
- echo " ";
- }
- // line 113
- echo "
- <li>Called from ";
- // line 114
- 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")));
- echo "</li>
- ";
- // line 116
- echo ((($this->getContext($context, "index") == (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "log"), "context"), "stack")) - 1))) ? ("</ul>") : (""));
- echo "
- ";
- }
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['index'], $context['call'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 118
- echo " ";
- } else {
- // line 119
- echo " ";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "priorityName"), "html", null, true);
- echo " - ";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "message"), "html", null, true);
- 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 "@WebProfiler/Collector/logger.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- 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,);
- }
- }