You are a developer and looking for Shopware projects?
Apply Now!
getAppById example
catch
(
ExtensionNotFoundException
)
{
return
;
}
$this
->
validateExtensionCanBeRemoved
(
$technicalName
,
$app
->
getId
(
)
,
$context
)
;
$this
->appLifecycle->
delete
(
$technicalName
,
[
'id' =>
$app
->
getId
(
)
, 'roleId' =>
$app
->
getAclRoleId
(
)
]
,
$context
,
$keepUserData
)
;
}
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
{