deleteAclRole example

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 */
    private function updateMetadata(array $metadata, Context $context): void
    {
        $context->scope(Context::SYSTEM_SCOPE, function DContext $context) use ($metadata): void {
            $this->appRepository->upsert([$metadata]$context);
        });
    }
Home | Imprint | This part of the site doesn't use cookies.