diff --git a/php/src/Controller/DockerController.php b/php/src/Controller/DockerController.php index c31de6f5..6d27d7b0 100644 --- a/php/src/Controller/DockerController.php +++ b/php/src/Controller/DockerController.php @@ -15,6 +15,10 @@ use Slim\Psr7\NonBufferedBody; readonly class DockerController { private const string TOP_CONTAINER = 'nextcloud-aio-apache'; + private function getLatestMajorVersion(): string { + return '33'; + } + public function __construct( private DockerActionManager $dockerActionManager, private ContainerDefinitionFetcher $containerDefinitionFetcher, @@ -221,7 +225,7 @@ readonly class DockerController { } if (isset($request->getParsedBody()['install_latest_major'])) { - $installLatestMajor = '33'; + $installLatestMajor = $this->getLatestMajorVersion(); } else { $installLatestMajor = ''; } @@ -334,7 +338,7 @@ readonly class DockerController { } public function RunNextcloudUpgradeToLatestMajor(Request $request, Response $response, array $args) : Response { - $this->configurationManager->installLatestMajor = '33'; + $this->configurationManager->installLatestMajor = $this->getLatestMajorVersion(); // Get streaming response start and closure $nonbufResp = $this->startStreamingResponse($response);