Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
softDeleteRole example
$this
->systemConfigService->
deleteExtensionConfiguration
(
$app
->
getName
(
)
,
$config
)
;
}
}
$this
->appRepository->
delete
(
[
[
'id' =>
$app
->
getId
(
)
]
]
,
$context
)
;
if
(
$softDelete
)
{
$this
->integrationRepository->
update
(
[
[
'id' =>
$app
->
getIntegrationId
(
)
,
'deletedAt' =>
new
\
DateTimeImmutable
(
)
,
]
]
,
$context
)
;
$this
->permissionPersister->
softDeleteRole
(
$app
->
getAclRoleId
(
)
)
;
}
else
{
$this
->integrationRepository->
delete
(
[
[
'id' =>
$app
->
getIntegrationId
(
)
]
]
,
$context
)
;
$this
->permissionPersister->
removeRole
(
$app
->
getAclRoleId
(
)
)
;
}
$this
->
deleteAclRole
(
$app
->
getName
(
)
,
$context
)
;
}
)
;
}
/** * @param array<string, mixed> $metadata */