setAclRoleId example

'0.0.0',
            $this->bus,
            $isAdminWorkerEnabled
        );
    }

    private function getWebhookEntity(string $eventName): WebhookEntity
    {
        $appEntity = new AppEntity();
        $appEntity->setId(Uuid::randomHex());
        $appEntity->setName('Cool App');
        $appEntity->setAclRoleId(Uuid::randomHex());
        $appEntity->setActive(true);
        $appEntity->setVersion('0.0.0');
        $appEntity->setAppSecret('verysecret');

        $webhookEntity = new WebhookEntity();
        $webhookEntity->setId(Uuid::randomHex());
        $webhookEntity->setName('Cool Webhook');
        $webhookEntity->setEventName($eventName);
        $webhookEntity->setApp($appEntity);
        $webhookEntity->setUrl('https://foo.bar');

        
Home | Imprint | This part of the site doesn't use cookies.