CodeExplorer deleteApp example
public function removeExtensionAndCancelSubscription(int
$licenseId, string
$technicalName, string
$id, Context
$context): void
{ $this->
validateExtensionCanBeRemoved($technicalName,
$id,
$context);
$app =
$this->
getAppById($id,
$context);
$this->storeClient->
cancelSubscription($licenseId,
$context);
$this->appLifecycle->
delete($technicalName,
['id' =>
$id, 'roleId' =>
$app->
getAclRoleId()],
$context);
$this->
deleteExtension($technicalName);
} public function deleteExtension(string
$technicalName): void
{ $this->appLoader->
deleteApp($technicalName);
} public function activateExtension(string
$technicalName, Context
$context): void
{ $id =
$this->
getAppByName($technicalName,
$context)->
getId();
$this->appStateService->
activateApp($id,
$context);
} public function deactivateExtension(string
$technicalName, Context
$context): void
{ $id =
$this->
getAppByName($technicalName,
$context)->
getId();