$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,
]);
} #[Route('/update/_migrate-template', name: 'migrate-template', methods: ['POST'])]
public function migrateTemplate(): Response
{ $shopwarePath =
$this->recoveryManager->
getShopwareLocation();
$this->flexMigrator->
cleanup($shopwarePath);
$this->flexMigrator->
patchRootComposerJson($shopwarePath);