diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css b/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css index 5f6a7b4cd304..5ce1a6bfcebd 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css @@ -80,7 +80,7 @@ tr table { width:100%; - margin:10px 0 60px; + margin:10px 0 30px; } table th @@ -137,7 +137,7 @@ fieldset #header { - padding:30px 30px 20px 30px; + padding:30px 30px 20px; } #header h1 @@ -347,7 +347,7 @@ ul.alt li.error { margin-bottom: 1px; } -td#main, td.menu { +td.main, td.menu { text-align: left; margin: 0; padding: 0; diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig index 3f8be664db70..778479a0a29e 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig @@ -43,7 +43,7 @@ {% endblock %} {% block panel %} -

Configuration

+

Project Configuration

@@ -54,7 +54,7 @@ - + @@ -65,6 +65,14 @@ +
Key{{ collector.symfonyversion }}
ApplicationApplication name {{ collector.appname }}
Debug {{ collector.debug ? 'enabled' : 'disabled' }}
+ +

PHP configuration

+ + + + + @@ -90,4 +98,19 @@
KeyValue
PHP version {{ collector.phpversion }}{{ collector.haseaccelerator ? 'enabled' : 'disabled' }}
+ +

Active bundles

+ + + + + + {% for name, path in collector.bundles %} + + + + + {% endfor %} +
NamePath
{{ name }}{{ path }}
+ {% endblock %} diff --git a/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php index 9052f5fe728d..2f6a81b29045 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php @@ -52,7 +52,13 @@ public function collect(Request $request, Response $response, \Exception $except 'eaccel_enabled' => extension_loaded('eaccelerator') && ini_get('eaccelerator.enable'), 'apc_enabled' => extension_loaded('apc') && ini_get('apc.enabled'), 'xcache_enabled' => extension_loaded('xcache') && ini_get('xcache.cacher'), + 'bundles' => array(), ); + + foreach ($this->kernel->getBundles() as $name => $bundle) { + $this->data['bundles'][$name] = $bundle->getPath(); + } + } /** @@ -165,6 +171,11 @@ public function hasAccelerator() return $this->hasApc() || $this->hasEAccelerator() || $this->hasXCache(); } + public function getBundles() + { + return $this->data['bundles']; + } + /** * {@inheritdoc} */