#[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'
);
} return $this->
render('update.html.twig',
[ 'shopwarePath' =>
$shopwarePath,
'currentShopwareVersion' =>
$currentShopwareVersion,
'isFlexProject' =>
$this->recoveryManager->
isFlexProject($shopwarePath),
'versions' =>
$latestVersions,
]);
}