Skip to content

Commit b35e184

Browse files
authored
[Task] Studio UI Development - About Dialog (#1486)
* Added version and platform_version settings * Apply php-cs-fixer changes * Fixed namespace
1 parent 14b1172 commit b35e184

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"php": "~8.3.0 || ~8.4.0",
2121
"league/csv": "^9.22",
2222
"nesbot/carbon": "^3.8.4",
23-
"pimcore/static-resolver-bundle": "^3.2.0",
23+
"pimcore/static-resolver-bundle": "^3.3.0",
2424
"pimcore/generic-data-index-bundle": "^2.2.0",
2525
"pimcore/pimcore": "^12.3",
2626
"zircote/swagger-php": "^4.8 || ^5.0",

src/Setting/Provider/SystemSettingsProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
use Pimcore\Bundle\StaticResolverBundle\Lib\ToolResolverInterface;
1717
use Pimcore\Bundle\StaticResolverBundle\Lib\Tools\AdminResolverInterface;
18+
use Pimcore\Bundle\StaticResolverBundle\Lib\VersionResolverInterface;
1819
use Pimcore\SystemSettingsConfig;
1920
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
2021
use function ini_get;
@@ -30,7 +31,8 @@
3031
public function __construct(
3132
SystemSettingsConfig $systemSettingsConfig,
3233
private AdminResolverInterface $adminResolver,
33-
private ToolResolverInterface $toolResolver
34+
private ToolResolverInterface $toolResolver,
35+
private VersionResolverInterface $versionResolver
3436
) {
3537
$this->systemSettings = $systemSettingsConfig->getSystemSettingsConfig();
3638
}
@@ -46,6 +48,8 @@ public function getSettings(): array
4648
'debug_admin_translations' => (bool)$this->systemSettings['general']['debug_admin_translations'],
4749
'main_domain' => $this->systemSettings['general']['domain'],
4850
'upload_max_filesize' => $this->getUploadMaxFilesize(),
51+
'platform_version' => $this->versionResolver->getPlatformVersion(),
52+
'version' => $this->versionResolver->getVersion(),
4953
];
5054
}
5155

0 commit comments

Comments
 (0)