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 46234cda974d..20160c1a4e2f 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig
@@ -181,6 +181,31 @@
{% endif %}
+
+ {% set symfony_status = { dev: 'Unstable Version', stable: 'Stable Version', eom: 'Maintenance Ended', eol: 'Version Expired' } %}
+ {% set symfony_status_class = { dev: 'warning', stable: 'success', eom: 'warning', eol: 'error' } %}
+
+
+
+ Symfony Status |
+ Bugs {{ collector.symfonystate in ['eom', 'eol'] ? 'were' : 'are' }} fixed until |
+ Security issues {{ collector.symfonystate == 'eol' ? 'were' : 'are' }} fixed until |
+ |
+
+
+
+
+
+ {{ symfony_status[collector.symfonystate]|upper }}
+ |
+ {{ collector.symfonyeom }} |
+ {{ collector.symfonyeol }} |
+
+ View roadmap
+ |
+
+
+
{% endif %}
PHP Configuration
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig
index bb5aea2f444a..bbd8b46e1c57 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig
@@ -166,6 +166,10 @@ table thead th {
table thead th.key {
width: 19%;
}
+table thead.small th {
+ font-size: 12px;
+ padding: 4px 10px;
+}
table tbody th,
table tbody td {
diff --git a/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php
index 13db7c431480..b0524d857b49 100644
--- a/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php
+++ b/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php
@@ -83,6 +83,11 @@ public function collect(Request $request, Response $response, \Exception $except
}
$this->data['symfony_state'] = $this->determineSymfonyState();
+ $this->data['symfony_minor_version'] = sprintf('%s.%s', Kernel::MAJOR_VERSION, Kernel::MINOR_VERSION);
+ $eom = \DateTime::createFromFormat('m/Y', Kernel::END_OF_MAINTENANCE);
+ $eol = \DateTime::createFromFormat('m/Y', Kernel::END_OF_LIFE);
+ $this->data['symfony_eom'] = $eom->format('F Y');
+ $this->data['symfony_eol'] = $eol->format('F Y');
}
}
@@ -126,6 +131,39 @@ public function getSymfonyState()
return $this->data['symfony_state'];
}
+ /**
+ * Returns the minor Symfony version used (without patch numbers of extra
+ * suffix like "RC", "beta", etc.).
+ *
+ * @return string
+ */
+ public function getSymfonyMinorVersion()
+ {
+ return $this->data['symfony_minor_version'];
+ }
+
+ /**
+ * Returns the human redable date when this Symfony version ends its
+ * maintenance period.
+ *
+ * @return string
+ */
+ public function getSymfonyEom()
+ {
+ return $this->data['symfony_eom'];
+ }
+
+ /**
+ * Returns the human redable date when this Symfony version reaches its
+ * "end of life" and won't receive bugs or security fixes.
+ *
+ * @return string
+ */
+ public function getSymfonyEol()
+ {
+ return $this->data['symfony_eol'];
+ }
+
/**
* Gets the PHP version.
*