Use version info from updateChecker to be consistent

This commit is contained in:
Jan Böhmer 2026-02-02 20:52:42 +01:00
parent 2b94ff952c
commit 29a08d152a
2 changed files with 2 additions and 6 deletions

View file

@ -24,12 +24,8 @@ declare(strict_types=1);
namespace App\Services\System; namespace App\Services\System;
use App\Settings\SystemSettings\PrivacySettings; use App\Settings\SystemSettings\PrivacySettings;
use Psr\Log\LoggerInterface;
use Shivas\VersioningBundle\Service\VersionManagerInterface;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Contracts\Cache\CacheInterface; use Symfony\Contracts\Cache\CacheInterface;
use Symfony\Contracts\Cache\ItemInterface; use Symfony\Contracts\Cache\ItemInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;
use Version\Version; use Version\Version;
/** /**

View file

@ -55,7 +55,7 @@ class UpdateExecutor
private readonly LoggerInterface $logger, private readonly LoggerInterface $logger,
private readonly Filesystem $filesystem, private readonly Filesystem $filesystem,
private readonly InstallationTypeDetector $installationTypeDetector, private readonly InstallationTypeDetector $installationTypeDetector,
private readonly VersionManagerInterface $versionManager, private readonly UpdateChecker $updateChecker,
private readonly BackupManager $backupManager, private readonly BackupManager $backupManager,
private readonly CommandRunHelper $commandRunHelper, private readonly CommandRunHelper $commandRunHelper,
#[Autowire(param: 'app.debug_mode')] #[Autowire(param: 'app.debug_mode')]
@ -68,7 +68,7 @@ class UpdateExecutor
*/ */
private function getCurrentVersionString(): string private function getCurrentVersionString(): string
{ {
return $this->versionManager->getVersion()->toString(); return $this->updateChecker->getCurrentVersionString();
} }
/** /**