LaunchDarkly PHP SDK 4.2.3

EventPublisher

Interface for the component that sends events to the LaunchDarkly service.

The default implementation is Curl::eventPublisher(). The SDK also provides Guzzle::eventPublisher().

Table of Contents

__construct()  : mixed
publish()  : bool
Publishes events to LaunchDarkly.

Methods

__construct()

public __construct(string $sdkKey, array<string|int, mixed> $options) : mixed
Parameters
$sdkKey : string

The SDK key for your account

$options : array<string|int, mixed>

Client configuration settings

Return values
mixed

publish()

Publishes events to LaunchDarkly.

public publish(string $payload) : bool
Parameters
$payload : string

Event payload

Return values
bool

Whether the events were successfully published

Search results