diff --git a/src/Command/InfoCommand.php b/src/Command/InfoCommand.php
index 0cce94414..9c0a3197e 100644
--- a/src/Command/InfoCommand.php
+++ b/src/Command/InfoCommand.php
@@ -63,6 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
sprintf('Install type: %s', Version::installType()),
sprintf('Database: %s %s%s%s (%s)', $platform['driver_name'], $platform['server_version'], $connection, $tableExists, $withJson),
sprintf('PHP version: %s', PHP_VERSION),
+ sprintf('Symfony version: %s', Version::getSymfonyVersion()),
sprintf('Operating System: %s - %s', php_uname('s'), php_uname('r')),
]);
diff --git a/src/Controller/Backend/GeneralController.php b/src/Controller/Backend/GeneralController.php
index a339b11d1..d2204204a 100644
--- a/src/Controller/Backend/GeneralController.php
+++ b/src/Controller/Backend/GeneralController.php
@@ -35,6 +35,7 @@ public function about(): Response
'installType' => Version::installType(),
'platform' => $this->doctrineVersion->getPlatform(),
'php' => PHP_VERSION,
+ 'symfony' => Version::getSymfonyVersion(),
'os_name' => php_uname('s'),
'os_version' => php_uname('r'),
];
diff --git a/src/Version.php b/src/Version.php
index 4eede47fd..83d84bcc0 100644
--- a/src/Version.php
+++ b/src/Version.php
@@ -4,6 +4,8 @@
namespace Bolt;
+use ComposerPackages\Packages;
+
/**
* Bolt's current version.
*
@@ -124,10 +126,8 @@ public static function installType(): string
return $type;
}
- /**
- * Must not be instantiated.
- */
- private function __construct()
+ public static function getSymfonyVersion(): string
{
+ return Packages::symfonyFrameworkBundle()->getPrettyVersion();
}
}
diff --git a/templates/pages/about.html.twig b/templates/pages/about.html.twig
index 4876233a6..206707dc2 100644
--- a/templates/pages/about.html.twig
+++ b/templates/pages/about.html.twig
@@ -20,6 +20,7 @@
Install type: {{ installType }}
Database: {{ platform.driver_name }} {{ platform.server_version }} - {{ platform.connection_status }}
PHP version: {{ php }}
+ Symfony version: {{ symfony }}
Operating System: {{ os_name }} - {{ os_version }}