mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-11 12:09:36 +00:00
Use version info from updateChecker to be consistent
This commit is contained in:
parent
2b94ff952c
commit
29a08d152a
2 changed files with 2 additions and 6 deletions
|
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue