parent = array();
$this->blocks = array(
'toolbar' => array($this, 'block_toolbar'),
'menu' => array($this, 'block_menu'),
'panel' => array($this, 'block_panel'),
);
}
public function getParent(array $context)
{
$parent = "WebProfilerBundle:Profiler:layout.html.twig";
if ($parent instanceof Twig_Template) {
$name = $parent->getTemplateName();
$this->parent[$name] = $parent;
$parent = $name;
} elseif (!isset($this->parent[$parent])) {
$this->parent[$parent] = $this->env->loadTemplate($parent);
}
return $this->parent[$parent];
}
protected function doDisplay(array $context, array $blocks = array())
{
$context = array_merge($this->env->getGlobals(), $context);
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_toolbar($context, array $blocks = array())
{
// line 4
echo " ";
ob_start();
// line 5
echo "
";
$context['icon'] = new Twig_Markup(ob_get_clean());
// line 7
echo " ";
$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))));
// line 8
echo "
";
// line 9
if ($this->getContext($context, 'verbose')) {
// line 10
echo " ";
ob_start();
// line 11
echo " ";
ob_start();
// line 12
echo " PHP ";
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "phpversion", array(), "any", false), "html");
echo "
|
getAttribute($this->getContext($context, 'collector'), "hasxdebug", array(), "any", false)) ? ("#759e1a") : ("#a33"));
echo "\">xdebug
|
getAttribute($this->getContext($context, 'collector'), "hasaccelerator", array(), "any", false)) ? ("#759e1a") : ("#a33"));
echo "\">accel
";
echo trim(preg_replace('/>\s+', '><', ob_get_clean()));
// line 18
echo " ";
$context['text'] = new Twig_Markup(ob_get_clean());
// line 19
echo " ";
$this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => false, "icon" => "")));
// line 20
echo " ";
}
// line 21
echo "
";
// line 22
ob_start();
// line 23
echo "
";
$context['icon'] = new Twig_Markup(ob_get_clean());
// line 26
echo " ";
ob_start();
// line 27
echo " ";
ob_start();
// line 28
echo " ";
if ($this->getContext($context, 'verbose')) {
// line 29
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "appname", array(), "any", false), "html");
echo "
|
";
// line 31
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "env", array(), "any", false), "html");
echo "
|
";
// line 33
echo (($this->getAttribute($this->getContext($context, 'collector'), "debug", array(), "any", false)) ? ("debug") : ("no-debug"));
echo "
|
";
}
// line 36
echo "
";
// line 37
if ($this->getContext($context, 'profiler_url')) {
// line 38
echo " env, $this->getContext($context, 'profiler_url'), "html");
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "token", array(), "any", false), "html");
echo "
";
} else {
// line 40
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "token", array(), "any", false), "html");
echo "
";
}
// line 42
echo "
";
echo trim(preg_replace('/>\s+', '><', ob_get_clean()));
// line 44
echo " ";
$context['text'] = new Twig_Markup(ob_get_clean());
// line 45
echo " ";
$this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url'))));
}
// line 48
public function block_menu($context, array $blocks = array())
{
// line 49
echo "
env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/config.png"), "html");
echo "\" alt=\"Configuration\" />
Config
";
}
// line 55
public function block_panel($context, array $blocks = array())
{
// line 56
echo "
Project Configuration
Key |
Value |
Symfony version |
";
// line 64
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "symfonyversion", array(), "any", false), "html");
echo " |
Application name |
";
// line 68
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "appname", array(), "any", false), "html");
echo " |
Environment |
";
// line 72
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "env", array(), "any", false), "html");
echo " |
Debug |
";
// line 76
echo (($this->getAttribute($this->getContext($context, 'collector'), "debug", array(), "any", false)) ? ("enabled") : ("disabled"));
echo " |
PHP configuration
Key |
Value |
PHP version |
";
// line 88
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "phpversion", array(), "any", false), "html");
echo " |
Xdebug |
";
// line 92
echo (($this->getAttribute($this->getContext($context, 'collector'), "hasxdebug", array(), "any", false)) ? ("enabled") : ("disabled"));
echo " |
PHP acceleration |
";
// line 96
echo (($this->getAttribute($this->getContext($context, 'collector'), "hasaccelerator", array(), "any", false)) ? ("enabled") : ("disabled"));
echo " |
XCache |
";
// line 100
echo (($this->getAttribute($this->getContext($context, 'collector'), "hasxcache", array(), "any", false)) ? ("enabled") : ("disabled"));
echo " |
APC |
";
// line 104
echo (($this->getAttribute($this->getContext($context, 'collector'), "hasapc", array(), "any", false)) ? ("enabled") : ("disabled"));
echo " |
EAccelerator |
";
// line 108
echo (($this->getAttribute($this->getContext($context, 'collector'), "haseaccelerator", array(), "any", false)) ? ("enabled") : ("disabled"));
echo " |
Active bundles
Name |
Path |
";
// line 118
$context['bundles'] = $this->getAttribute($this->getContext($context, 'collector'), "bundles", array(), "any", false);
// line 119
echo " ";
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, 'bundles'))));
foreach ($context['_seq'] as $context['_key'] => $context['name']) {
// line 120
echo "
";
// line 121
echo twig_escape_filter($this->env, $this->getContext($context, 'name'), "html");
echo " |
";
// line 122
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'bundles'), $this->getContext($context, 'name'), array(), "array", false), "html");
echo " |
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['name'], $context['_parent'], $context['loop']);
$context = array_merge($_parent, array_intersect_key($context, $_parent));
// line 125
echo "
";
}
public function getTemplateName()
{
return "WebProfilerBundle:Collector:config.html.twig";
}
public function isTraitable()
{
return false;
}
}