} #[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);
$this->flexMigrator->
copyNewTemplateFiles($shopwarePath);
$this->flexMigrator->
migrateEnvFile($shopwarePath);
return new Response('', Response::HTTP_NO_CONTENT
);
} #[Route('/update/_run', name: 'update_run', methods: ['POST'])]
public function run(Request
$request): Response
{ $version =
$request->query->
get('shopwareVersion', ''
);
$shopwarePath =
$this->recoveryManager->
getShopwareLocation();