unlink($file->
getPathname());
throw $e;
} return new Response('', Response::HTTP_NO_CONTENT
);
} #[Route(path: '/api/_action/extension/download/{technicalName}', name: 'api.extension.download', methods: ['POST'])]
public function downloadExtension(string
$technicalName, Context
$context): Response
{ $this->extensionDownloader->
download($technicalName,
$context);
return new Response('', Response::HTTP_NO_CONTENT
);
} #[Route(path: '/api/_action/extension/install/{type}/{technicalName}', name: 'api.extension.install', methods: ['POST'])]
public function installExtension(string
$type, string
$technicalName, Context
$context): Response
{ $this->extensionLifecycleService->
install($type,
$technicalName,
$context);
return new Response('', Response::HTTP_NO_CONTENT
);
}