8f24b0177deb9bcbea9ce184ce94.php 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?php
  2. /* WebProfilerBundle:Collector:config.html.twig */
  3. class __TwigTemplate_99c78f24b0177deb9bcbea9ce184ce94 extends Twig_Template
  4. {
  5. protected $parent;
  6. public function __construct(Twig_Environment $env)
  7. {
  8. parent::__construct($env);
  9. $this->parent = array();
  10. $this->blocks = array(
  11. 'toolbar' => array($this, 'block_toolbar'),
  12. 'menu' => array($this, 'block_menu'),
  13. 'panel' => array($this, 'block_panel'),
  14. );
  15. }
  16. public function getParent(array $context)
  17. {
  18. $parent = "WebProfilerBundle:Profiler:layout.html.twig";
  19. if ($parent instanceof Twig_Template) {
  20. $name = $parent->getTemplateName();
  21. $this->parent[$name] = $parent;
  22. $parent = $name;
  23. } elseif (!isset($this->parent[$parent])) {
  24. $this->parent[$parent] = $this->env->loadTemplate($parent);
  25. }
  26. return $this->parent[$parent];
  27. }
  28. protected function doDisplay(array $context, array $blocks = array())
  29. {
  30. $context = array_merge($this->env->getGlobals(), $context);
  31. $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
  32. }
  33. // line 3
  34. public function block_toolbar($context, array $blocks = array())
  35. {
  36. // line 4
  37. echo " ";
  38. ob_start();
  39. // line 5
  40. echo " <a href=\"http://symfony.com/\"><img width=\"26\" height=\"28\" alt=\"Symfony\" style=\"border-width: 0; margin: 0 5px 0 10px; vertical-align: middle;\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAA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FNDQ0P4OGWDnZ0ENXj2TF6gsSBWHCsV4bF58/AyfbJSD6b5czhWShaLuQCR3g9eF3LrVlkUnnt5e6JzLPb29u4wFsjB3n6K7u3t1X236u7/6kx7u8ATRzTy7fKKHeB54eTZli38dhhovb19/sYCbfLwEBF7Yt/7Ge1hSACNDCBLhkZHcHR0FOfmfBewGvsk70+sRRv17k2IFxpzwY/vN4Rpv7Gh8WNjQQJ3Bkrt7OwECDSQmpZSggG6XKig8PxITu4pGbne/35Sw4EPUg5DYBpVdVks1tNPj2eVYnATOlf9LTMroxYS4FIVtLGx0Wzfvq1EJBr4E9e7ot+VXrta5NEh7Ag19muOph/5g8vl1sFUQlZYK8z6134s+uzs93lvkIKQ17oJgkaHn+2YbIwB5d3MWJCMzPTHScmJeZgGgUdIIEwdDsBRoP+0Lz4/wYNKS33ZCgva6UtM2lcI0ypgEdZB/Z7BVAe2EwpWzJcnvgpsedDCXA2Aj4+39tDhQwJfX5+bsKwG7ic7ouVdEOY9a3Qw4CChsGNnaUmpW3PTA/OVvhC6HgrEojo2PlYEJb0JthrR5phU9NuuZ/o6XTOBseMEjIHrjTEHTuA0Oytn9fT0sCHj0/h8/jSbbaHw8vbCzN4H3KFjVNUM2f08D4gkmq6xsMFcq/tSLNlrdTlyGkuFzmvHdIwA80Z1qs8BZWDO1TF+NcYddjzq5f/eEP0jwAAGCybA1KhGOwAAAABJRU5ErkJggg==\"/></a>
  41. ";
  42. $context['icon'] = new Twig_Markup(ob_get_clean());
  43. // line 7
  44. echo " ";
  45. $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => false, "text" => $this->getAttribute($this->getContext($context, 'collector'), "symfonyversion", array(), "any", false))));
  46. // line 8
  47. echo "
  48. ";
  49. // line 9
  50. if ($this->getContext($context, 'verbose')) {
  51. // line 10
  52. echo " ";
  53. ob_start();
  54. // line 11
  55. echo " ";
  56. ob_start();
  57. // line 12
  58. echo " <span>PHP ";
  59. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "phpversion", array(), "any", false), "html");
  60. echo "</span>
  61. <span style=\"margin: 0; padding: 0; color: #979696;\">|</span>
  62. <span style=\"color: ";
  63. // line 14
  64. echo (($this->getAttribute($this->getContext($context, 'collector'), "hasxdebug", array(), "any", false)) ? ("#759e1a") : ("#a33"));
  65. echo "\">xdebug</span>
  66. <span style=\"margin: 0; padding: 0; color: #979696\">|</span>
  67. <span style=\"color: ";
  68. // line 16
  69. echo (($this->getAttribute($this->getContext($context, 'collector'), "hasaccelerator", array(), "any", false)) ? ("#759e1a") : ("#a33"));
  70. echo "\">accel</span>
  71. ";
  72. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  73. // line 18
  74. echo " ";
  75. $context['text'] = new Twig_Markup(ob_get_clean());
  76. // line 19
  77. echo " ";
  78. $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => false, "icon" => "")));
  79. // line 20
  80. echo " ";
  81. }
  82. // line 21
  83. echo "
  84. ";
  85. // line 22
  86. ob_start();
  87. // line 23
  88. echo " <img width=\"21\" height=\"28\" alt=\"Environment\" style=\"border-width: 0; vertical-align: middle; margin-right: 5px;\" src=\"data:image/png;base64,
  89. iVBORw0KGgoAAAANSUhEUgAAABUAAAAcCAYAAACOGPReAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAZNJREFUeNpi/P//PwO1ARMDDcCooWDA4+npeRiEQWw0NTweHh4nQZhYORYoLf39+3cbGBuIbyJplPnx44cZjA3ENwjJwQzljoqKOghjo7lGBAcbBLiA+g7B2DBBRqCXj3/79s0CRSUX14lt27a5AplfgNgBCPaDxA8cOOAIokBe9fLy2o1LHxO6BAhAxWTwxIUMPn0seDTCvPotLi7uJIyNIxhQ9OEzVADoRZSgWbRo0UmoF1vx6GPBl06l8XhRmtzEL0KmHF5DWcmUo1E21dLSeo0uCBX7jUffb3z6GIGFdC2QYXPp0iVw4Ovp6T0FUkeA+BUw0c/AZiIwE2QAKTEc+laBktQqIL6al5e3FqqhDsQHYhU8Ln0CzVnY9D1hghYeD5E0PISKfcDjxQ949H2FJX5eJEkY+820adMm4/DiGzz6GFgIeBFX0DzBF/swQ/8oKCi8h7Gh9FeodzikpKSeQ8XuopW12PQxMEKraE0gDoSKrQfi60gaSZaDGQqqCiShks+h5Si8yiBVjnFkNyYAAgwAQGPBFLF65f4AAAAASUVORK5CYII=\"/>
  90. ";
  91. $context['icon'] = new Twig_Markup(ob_get_clean());
  92. // line 26
  93. echo " ";
  94. ob_start();
  95. // line 27
  96. echo " ";
  97. ob_start();
  98. // line 28
  99. echo " ";
  100. if ($this->getContext($context, 'verbose')) {
  101. // line 29
  102. echo " <span>";
  103. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "appname", array(), "any", false), "html");
  104. echo "</span>
  105. <span style=\"margin: 0; padding: 0; color: #979696;\">|</span>
  106. <span>";
  107. // line 31
  108. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "env", array(), "any", false), "html");
  109. echo "</span>
  110. <span style=\"margin: 0; padding: 0; color: #979696;\">|</span>
  111. <span>";
  112. // line 33
  113. echo (($this->getAttribute($this->getContext($context, 'collector'), "debug", array(), "any", false)) ? ("debug") : ("no-debug"));
  114. echo "</span>
  115. <span style=\"margin: 0; padding: 0; color: #979696;\">|</span>
  116. ";
  117. }
  118. // line 36
  119. echo " <span>
  120. ";
  121. // line 37
  122. if ($this->getContext($context, 'profiler_url')) {
  123. // line 38
  124. echo " <a style=\"color: #2f2f2f\" href=\"";
  125. echo twig_escape_filter($this->env, $this->getContext($context, 'profiler_url'), "html");
  126. echo "\">";
  127. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "token", array(), "any", false), "html");
  128. echo "</a>
  129. ";
  130. } else {
  131. // line 40
  132. echo " ";
  133. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "token", array(), "any", false), "html");
  134. echo "
  135. ";
  136. }
  137. // line 42
  138. echo " </span>
  139. ";
  140. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  141. // line 44
  142. echo " ";
  143. $context['text'] = new Twig_Markup(ob_get_clean());
  144. // line 45
  145. echo " ";
  146. $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url'))));
  147. }
  148. // line 48
  149. public function block_menu($context, array $blocks = array())
  150. {
  151. // line 49
  152. echo "<span class=\"label\">
  153. <span class=\"icon\"><img src=\"";
  154. // line 50
  155. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/config.png"), "html");
  156. echo "\" alt=\"Configuration\" /></span>
  157. <strong>Config</strong>
  158. </span>
  159. ";
  160. }
  161. // line 55
  162. public function block_panel($context, array $blocks = array())
  163. {
  164. // line 56
  165. echo " <h2>Project Configuration</h2>
  166. <table>
  167. <tr>
  168. <th>Key</th>
  169. <th>Value</th>
  170. </tr>
  171. <tr>
  172. <th>Symfony version</th>
  173. <td>";
  174. // line 64
  175. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "symfonyversion", array(), "any", false), "html");
  176. echo "</td>
  177. </tr>
  178. <tr>
  179. <th>Application name</th>
  180. <td>";
  181. // line 68
  182. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "appname", array(), "any", false), "html");
  183. echo "</td>
  184. </tr>
  185. <tr>
  186. <th>Environment</th>
  187. <td>";
  188. // line 72
  189. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "env", array(), "any", false), "html");
  190. echo "</td>
  191. </tr>
  192. <tr>
  193. <th>Debug</th>
  194. <td>";
  195. // line 76
  196. echo (($this->getAttribute($this->getContext($context, 'collector'), "debug", array(), "any", false)) ? ("enabled") : ("disabled"));
  197. echo "</td>
  198. </tr>
  199. </table>
  200. <h2>PHP configuration</h2>
  201. <table>
  202. <tr>
  203. <th>Key</th>
  204. <th>Value</th>
  205. </tr>
  206. <tr>
  207. <th>PHP version</th>
  208. <td>";
  209. // line 88
  210. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "phpversion", array(), "any", false), "html");
  211. echo "</td>
  212. </tr>
  213. <tr>
  214. <th>Xdebug</th>
  215. <td>";
  216. // line 92
  217. echo (($this->getAttribute($this->getContext($context, 'collector'), "hasxdebug", array(), "any", false)) ? ("enabled") : ("disabled"));
  218. echo "</td>
  219. </tr>
  220. <tr>
  221. <th>PHP acceleration</th>
  222. <td>";
  223. // line 96
  224. echo (($this->getAttribute($this->getContext($context, 'collector'), "hasaccelerator", array(), "any", false)) ? ("enabled") : ("disabled"));
  225. echo "</td>
  226. </tr>
  227. <tr>
  228. <th>XCache</th>
  229. <td>";
  230. // line 100
  231. echo (($this->getAttribute($this->getContext($context, 'collector'), "hasxcache", array(), "any", false)) ? ("enabled") : ("disabled"));
  232. echo "</td>
  233. </tr>
  234. <tr>
  235. <th>APC</th>
  236. <td>";
  237. // line 104
  238. echo (($this->getAttribute($this->getContext($context, 'collector'), "hasapc", array(), "any", false)) ? ("enabled") : ("disabled"));
  239. echo "</td>
  240. </tr>
  241. <tr>
  242. <th>EAccelerator</th>
  243. <td>";
  244. // line 108
  245. echo (($this->getAttribute($this->getContext($context, 'collector'), "haseaccelerator", array(), "any", false)) ? ("enabled") : ("disabled"));
  246. echo "</td>
  247. </tr>
  248. </table>
  249. <h2>Active bundles</h2>
  250. <table>
  251. <tr>
  252. <th>Name</th>
  253. <th>Path</th>
  254. </tr>
  255. ";
  256. // line 118
  257. $context['bundles'] = $this->getAttribute($this->getContext($context, 'collector'), "bundles", array(), "any", false);
  258. // line 119
  259. echo " ";
  260. $context['_parent'] = (array) $context;
  261. $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, 'bundles'))));
  262. foreach ($context['_seq'] as $context['_key'] => $context['name']) {
  263. // line 120
  264. echo " <tr>
  265. <th>";
  266. // line 121
  267. echo twig_escape_filter($this->env, $this->getContext($context, 'name'), "html");
  268. echo "</th>
  269. <td>";
  270. // line 122
  271. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'bundles'), $this->getContext($context, 'name'), array(), "array", false), "html");
  272. echo "</td>
  273. </tr>
  274. ";
  275. }
  276. $_parent = $context['_parent'];
  277. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['name'], $context['_parent'], $context['loop']);
  278. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  279. // line 125
  280. echo " </table>
  281. ";
  282. }
  283. public function getTemplateName()
  284. {
  285. return "WebProfilerBundle:Collector:config.html.twig";
  286. }
  287. public function isTraitable()
  288. {
  289. return false;
  290. }
  291. }