PageRenderTime 36ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/app/cache/dev/twig/75/b1/fa9de3fb7d86b2f7032112f9ffd1612e2701b95df4ae4f3281b9c0c34eec.php

https://github.com/silvanei/treinaweb-symfony2-basico
PHP | 230 lines | 176 code | 11 blank | 43 comment | 17 complexity | 947c59ae3839297529085413134ca8c8 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?php
  2. /* @Security/Collector/security.html.twig */
  3. class __TwigTemplate_75b1fa9de3fb7d86b2f7032112f9ffd1612e2701b95df4ae4f3281b9c0c34eec 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. 'toolbar' => array($this, 'block_toolbar'),
  11. 'menu' => array($this, 'block_menu'),
  12. 'panel' => array($this, 'block_panel'),
  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. $this->parent->display($context, array_merge($this->blocks, $blocks));
  22. }
  23. // line 3
  24. public function block_toolbar($context, array $blocks = array())
  25. {
  26. // line 4
  27. echo " ";
  28. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "user")) {
  29. // line 5
  30. echo " ";
  31. $context["color_code"] = ((($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "enabled") && $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "authenticated"))) ? ("green") : ("yellow"));
  32. // line 6
  33. echo " ";
  34. $context["authentication_color_code"] = ((($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "enabled") && $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "authenticated"))) ? ("green") : ("red"));
  35. // line 7
  36. echo " ";
  37. $context["authentication_color_text"] = ((($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "enabled") && $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "authenticated"))) ? ("Yes") : ("No"));
  38. // line 8
  39. echo " ";
  40. } else {
  41. // line 9
  42. echo " ";
  43. $context["color_code"] = (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "enabled")) ? ("red") : ("black"));
  44. // line 10
  45. echo " ";
  46. }
  47. // line 11
  48. echo " ";
  49. ob_start();
  50. // line 12
  51. echo " ";
  52. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "user")) {
  53. // line 13
  54. echo " <div class=\"sf-toolbar-info-piece\">
  55. <b>Logged in as</b>
  56. <span class=\"sf-toolbar-status sf-toolbar-status-";
  57. // line 15
  58. echo twig_escape_filter($this->env, (isset($context["color_code"]) ? $context["color_code"] : $this->getContext($context, "color_code")), "html", null, true);
  59. echo "\">";
  60. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "user"), "html", null, true);
  61. echo "</span>
  62. </div>
  63. <div class=\"sf-toolbar-info-piece\">
  64. <b>Authenticated</b>
  65. <span class=\"sf-toolbar-status sf-toolbar-status-";
  66. // line 19
  67. echo twig_escape_filter($this->env, (isset($context["authentication_color_code"]) ? $context["authentication_color_code"] : $this->getContext($context, "authentication_color_code")), "html", null, true);
  68. echo "\">";
  69. echo twig_escape_filter($this->env, (isset($context["authentication_color_text"]) ? $context["authentication_color_text"] : $this->getContext($context, "authentication_color_text")), "html", null, true);
  70. echo "</span>
  71. </div>
  72. ";
  73. // line 21
  74. if (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "tokenClass") != null)) {
  75. // line 22
  76. echo " <div class=\"sf-toolbar-info-piece\">
  77. <b>Token class</b>
  78. ";
  79. // line 24
  80. echo $this->env->getExtension('code')->abbrClass($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "tokenClass"));
  81. echo "
  82. </div>
  83. ";
  84. }
  85. // line 27
  86. echo " ";
  87. } elseif ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "enabled")) {
  88. // line 28
  89. echo " You are not authenticated.
  90. ";
  91. } else {
  92. // line 30
  93. echo " The security is disabled.
  94. ";
  95. }
  96. // line 32
  97. echo " ";
  98. $context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  99. // line 33
  100. echo " ";
  101. ob_start();
  102. // line 34
  103. echo " <img width=\"24\" height=\"28\" alt=\"Security\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAcCAYAAAB75n/uAAAC70lEQVR42u2V3UtTYRzHu+mFwCwK+gO6CEryPlg7yiYx50vDqUwjFIZDSYUk2ZTmCysHvg9ZVggOQZiRScsR4VwXTjEwdKZWk8o6gd5UOt0mbev7g/PAkLONIOkiBx+25/v89vuc85zn2Q5Fo9F95UDwnwhS5HK5TyqVRv8m1JN6k+AiC+fn54cwbgFNIrTQ/J9IqDcJJDGBHsgDgYBSq9W6ysvLPf39/SSUUU7zsQ1yc3MjmN90OBzfRkZG1umzQqGIxPSTkIBjgdDkaGNjoza2kcFgUCE/QvMsq6io2PV6vQu1tbV8Xl7etkql2qqvr/+MbDE/Pz8s9OP2Cjhwwmw29+4R3Kec1WZnZ4fn5uamc3Jyttra2qbH8ero6JgdHh5+CvFHq9X6JZHgzODgoCVW0NPTY0N+ltU2Nzdv4GqXsYSrPp+vDw80aLFYxru6uhyQ/rDb7a8TCVJDodB1jUazTVlxcXGQ5/mbyE+z2u7u7veY38BVT3Z2djopm5qa6isrK/tQWVn5qb29fSGR4DC4PDAwMEsZHuArjGnyGKutq6v7ajQaF6urq9/MzMz0QuSemJiwQDwGkR0POhhXgILjNTU1TaWlpTxlOp1uyWQyaUjMajMzM8Nut/tJQUHBOpZppbCwkM/KytrBznuL9xDVxBMo8KXHYnu6qKjIivmrbIy67x6Px4Yd58W672ApfzY0NCyNjo7OZmRkiAv8fr+O47iwmABXtoXaG3uykF6vX7bZbF6cgZWqqiqezYkKcNtmjO+CF2AyhufgjsvlMiU7vXEF+4C4ALf9CwdrlVAqlcFkTdRqdQSHLUDgBEeSCrArAsiGwENs0XfJBE6ncxm1D8Aj/B6tigkkJSUlmxSwLYhMDeRsyyUCd+lHrWxtbe2aTCbbZTn1ZD92F0Cr8GBfgnsgDZwDt8EzMBmHMXBLqD0PDMAh9Gql3iRIESQSIAXp4CRIBZeEjIvDFZAm1J4C6UK9ROiZcvCn/+8FvwHtDdJEaRY+oQAAAABJRU5ErkJggg==\" />
  104. <span class=\"sf-toolbar-status sf-toolbar-status-";
  105. // line 35
  106. echo twig_escape_filter($this->env, (isset($context["color_code"]) ? $context["color_code"] : $this->getContext($context, "color_code")), "html", null, true);
  107. echo "\"></span>
  108. ";
  109. // line 36
  110. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "user")) {
  111. echo "<div class=\"sf-toolbar-status sf-toolbar-info-piece-additional\">";
  112. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "user"), "html", null, true);
  113. echo "</div>";
  114. }
  115. // line 37
  116. echo " ";
  117. $context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  118. // line 38
  119. echo " ";
  120. $this->env->loadTemplate("@WebProfiler/Profiler/toolbar_item.html.twig")->display(array_merge($context, array("link" => (isset($context["profiler_url"]) ? $context["profiler_url"] : $this->getContext($context, "profiler_url")))));
  121. }
  122. // line 41
  123. public function block_menu($context, array $blocks = array())
  124. {
  125. // line 42
  126. echo "<span class=\"label\">
  127. <span class=\"icon\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAA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Yrhn7ffHNqSKz8/34BTny0rK3uLwvoUGRm5zdsrtKurq436HDQKjR2gYahGqVS2UJwX8h30b3UEygXK/m3K9bvTy1j+QfE26cVcIonGHHAcsfyABqNCV3+z2AUSF5i3sbQf7estaBB0H1J5VPUgVA5dZFTO2MY4xR2rYvYL8hY0gAkKhsI8dA0KJNGYsXGLOzaY2S/g6A+II1CWfgAh4q3QhpOWjAAAAABJRU5ErkJggg==\" alt=\"\" /></span>
  128. <strong>Security</strong>
  129. </span>
  130. ";
  131. }
  132. // line 48
  133. public function block_panel($context, array $blocks = array())
  134. {
  135. // line 49
  136. echo " <h2>Security</h2>
  137. ";
  138. // line 50
  139. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "user")) {
  140. // line 51
  141. echo " <table>
  142. <tr>
  143. <th>Username</th>
  144. <td>";
  145. // line 54
  146. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "user"), "html", null, true);
  147. echo "</td>
  148. </tr>
  149. <tr>
  150. <th>Authenticated?</th>
  151. <td>
  152. ";
  153. // line 59
  154. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "authenticated")) {
  155. // line 60
  156. echo " yes
  157. ";
  158. } else {
  159. // line 62
  160. echo " no ";
  161. if ((!twig_length_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "roles")))) {
  162. echo "<em>(probably because the user has no roles)</em>";
  163. }
  164. // line 63
  165. echo " ";
  166. }
  167. // line 64
  168. echo " </td>
  169. </tr>
  170. <tr>
  171. <th>Roles</th>
  172. <td>";
  173. // line 68
  174. echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "roles")), "html", null, true);
  175. echo "</td>
  176. </tr>
  177. ";
  178. // line 70
  179. if (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "tokenClass") != null)) {
  180. // line 71
  181. echo " <tr>
  182. <th>Token class</th>
  183. <td>";
  184. // line 73
  185. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "tokenClass"), "html", null, true);
  186. echo "</td>
  187. </tr>
  188. ";
  189. }
  190. // line 76
  191. echo " </table>
  192. ";
  193. } elseif ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "enabled")) {
  194. // line 78
  195. echo " <p>
  196. <em>No token</em>
  197. </p>
  198. ";
  199. } else {
  200. // line 82
  201. echo " <p>
  202. <em>The security component is disabled</em>
  203. </p>
  204. ";
  205. }
  206. }
  207. public function getTemplateName()
  208. {
  209. return "@Security/Collector/security.html.twig";
  210. }
  211. public function isTraitable()
  212. {
  213. return false;
  214. }
  215. public function getDebugInfo()
  216. {
  217. return array ( 209 => 82, 193 => 73, 149 => 51, 133 => 42, 103 => 32, 95 => 28, 86 => 24, 57 => 12, 48 => 9, 672 => 345, 668 => 344, 664 => 342, 651 => 337, 647 => 336, 644 => 335, 640 => 334, 631 => 327, 626 => 325, 613 => 320, 609 => 319, 602 => 317, 593 => 310, 591 => 309, 588 => 308, 585 => 307, 581 => 305, 577 => 303, 569 => 300, 563 => 298, 559 => 296, 557 => 295, 552 => 293, 548 => 292, 545 => 291, 541 => 290, 533 => 284, 531 => 283, 525 => 280, 519 => 278, 515 => 276, 509 => 272, 505 => 270, 499 => 268, 497 => 267, 489 => 262, 483 => 258, 479 => 256, 473 => 254, 471 => 253, 465 => 249, 463 => 248, 459 => 246, 457 => 245, 454 => 244, 448 => 240, 444 => 238, 438 => 236, 436 => 235, 428 => 230, 418 => 224, 412 => 222, 410 => 221, 402 => 215, 400 => 214, 397 => 213, 393 => 211, 383 => 207, 376 => 205, 365 => 197, 347 => 191, 317 => 185, 313 => 183, 304 => 181, 295 => 178, 285 => 175, 273 => 174, 205 => 108, 201 => 106, 179 => 98, 159 => 90, 93 => 27, 77 => 20, 51 => 10, 34 => 5, 31 => 4, 810 => 492, 807 => 491, 796 => 489, 792 => 488, 788 => 486, 775 => 485, 749 => 479, 746 => 478, 727 => 476, 710 => 475, 706 => 473, 702 => 472, 698 => 471, 694 => 470, 690 => 469, 686 => 468, 682 => 467, 679 => 466, 677 => 465, 660 => 340, 649 => 462, 634 => 456, 629 => 326, 625 => 453, 622 => 323, 620 => 451, 606 => 318, 601 => 446, 567 => 414, 549 => 411, 532 => 410, 529 => 409, 527 => 281, 522 => 279, 517 => 404, 199 => 76, 196 => 92, 188 => 102, 182 => 68, 173 => 63, 68 => 30, 62 => 12, 28 => 3, 357 => 123, 344 => 119, 341 => 189, 332 => 116, 327 => 114, 324 => 113, 318 => 111, 306 => 107, 297 => 179, 291 => 102, 263 => 95, 258 => 94, 243 => 92, 231 => 83, 224 => 81, 212 => 78, 202 => 94, 190 => 76, 187 => 70, 174 => 65, 143 => 51, 136 => 71, 122 => 37, 117 => 39, 112 => 35, 104 => 32, 85 => 23, 75 => 19, 58 => 25, 44 => 9, 161 => 63, 158 => 80, 154 => 54, 151 => 59, 140 => 58, 125 => 38, 121 => 50, 118 => 49, 100 => 39, 87 => 41, 49 => 14, 46 => 13, 27 => 3, 91 => 33, 88 => 25, 63 => 18, 389 => 160, 386 => 159, 378 => 157, 371 => 156, 367 => 198, 363 => 126, 358 => 151, 353 => 193, 345 => 147, 343 => 146, 340 => 145, 334 => 141, 331 => 140, 328 => 139, 326 => 138, 321 => 112, 309 => 108, 307 => 128, 302 => 125, 296 => 121, 293 => 120, 290 => 119, 288 => 176, 283 => 100, 281 => 114, 276 => 111, 274 => 97, 269 => 107, 265 => 96, 259 => 103, 255 => 93, 253 => 100, 235 => 85, 232 => 88, 227 => 86, 222 => 83, 210 => 77, 208 => 76, 189 => 71, 184 => 101, 175 => 65, 170 => 96, 166 => 95, 163 => 82, 155 => 47, 152 => 46, 144 => 49, 127 => 35, 109 => 34, 94 => 21, 82 => 22, 76 => 34, 61 => 15, 39 => 6, 36 => 5, 79 => 21, 72 => 17, 69 => 16, 54 => 11, 47 => 11, 42 => 7, 40 => 11, 37 => 10, 22 => 1, 164 => 60, 157 => 89, 145 => 74, 139 => 49, 131 => 45, 120 => 31, 115 => 39, 111 => 47, 108 => 37, 106 => 33, 101 => 31, 98 => 45, 92 => 27, 83 => 33, 80 => 21, 74 => 14, 66 => 11, 60 => 13, 55 => 24, 52 => 12, 50 => 22, 41 => 8, 32 => 5, 29 => 6, 462 => 202, 453 => 199, 449 => 198, 446 => 197, 441 => 196, 439 => 195, 431 => 189, 429 => 188, 422 => 226, 415 => 180, 408 => 176, 401 => 172, 394 => 168, 387 => 164, 380 => 206, 373 => 156, 361 => 195, 355 => 150, 351 => 192, 348 => 140, 342 => 137, 338 => 135, 335 => 134, 329 => 188, 325 => 129, 323 => 128, 320 => 127, 315 => 110, 312 => 109, 303 => 106, 300 => 180, 298 => 120, 289 => 113, 286 => 112, 278 => 98, 275 => 105, 270 => 102, 267 => 101, 262 => 98, 256 => 96, 248 => 97, 246 => 136, 241 => 93, 233 => 87, 229 => 87, 226 => 84, 220 => 81, 216 => 79, 213 => 78, 207 => 75, 203 => 78, 200 => 72, 197 => 104, 194 => 68, 191 => 67, 185 => 74, 181 => 65, 178 => 66, 176 => 64, 172 => 64, 168 => 62, 165 => 83, 162 => 59, 156 => 62, 153 => 77, 150 => 55, 147 => 50, 141 => 48, 134 => 54, 130 => 41, 123 => 61, 119 => 40, 116 => 36, 113 => 48, 105 => 25, 102 => 40, 99 => 30, 96 => 37, 90 => 26, 84 => 40, 81 => 23, 73 => 19, 70 => 15, 67 => 24, 64 => 15, 59 => 11, 53 => 12, 45 => 8, 43 => 12, 38 => 7, 35 => 6, 33 => 4, 30 => 3,);
  218. }
  219. }