private readonly RecoveryManager
$recoveryManager,
private readonly ReleaseInfoProvider
$releaseInfoProvider,
private readonly FlexMigrator
$flexMigrator,
private readonly StreamedCommandResponseGenerator
$streamedCommandResponseGenerator ) { } #[Route('/update', name: 'update', defaults: ['step' => 2], methods: ['GET'])]
public function index(Request
$request): Response
{ try { $shopwarePath =
$this->recoveryManager->
getShopwareLocation();
} catch (\RuntimeException
) { return $this->
redirectToRoute('configure'
);
} $currentShopwareVersion =
$this->recoveryManager->
getCurrentShopwareVersion($shopwarePath);
$latestVersions =
$this->
getLatestVersions($request);
if (empty($latestVersions)) { return $this->
redirectToRoute('finish'
);
}