Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Command/InfoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
sprintf('Install type: <info>%s</info>', Version::installType()),
sprintf('Database: <info>%s %s</info>%s%s <info>(%s)</info>', $platform['driver_name'], $platform['server_version'], $connection, $tableExists, $withJson),
sprintf('PHP version: <info>%s</info>', PHP_VERSION),
sprintf('Symfony version: <info>%s</info>', Version::getSymfonyVersion()),
sprintf('Operating System: <info>%s</info> - <comment>%s</comment>', php_uname('s'), php_uname('r')),
]);

Expand Down
1 change: 1 addition & 0 deletions src/Controller/Backend/GeneralController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
];
Expand Down
8 changes: 4 additions & 4 deletions src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace Bolt;

use ComposerPackages\Packages;

/**
* Bolt's current version.
*
Expand Down Expand Up @@ -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();
}
}
1 change: 1 addition & 0 deletions templates/pages/about.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<li>Install type: <code>{{ installType }}</code></li>
<li>Database: <code>{{ platform.driver_name }} {{ platform.server_version }} <small> - {{ platform.connection_status }}</small> </code></li>
<li>PHP version: <code>{{ php }}</code></li>
<li>Symfony version: <code>{{ symfony }}</code></li>
<li>Operating System: <code>{{ os_name }} - <small>{{ os_version }}</small></code></li>
</ul>
<hr>
Expand Down