-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathUnleashEvents.php
41 lines (35 loc) · 1.21 KB
/
UnleashEvents.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Unleash\Client\Event;
final class UnleashEvents
{
/**
* When a feature toggle is not found this event gets triggered.
*
* @Event("Unleash\Client\Event\FeatureToggleNotFoundEvent")
*/
public const FEATURE_TOGGLE_NOT_FOUND = 'unleash.event.toggle.not_found';
/**
* Triggered when a feature toggle is disabled.
*
* @Event("Unleash\Client\Event\FeatureToggleDisabledEvent")
*/
public const FEATURE_TOGGLE_DISABLED = 'unleash.event.toggle.disabled';
/**
* Triggered when no strategy handler has been found for the feature.
*
* @Event("Unleash\Client\Event\FeatureToggleMissingStrategyHandlerEvent")
*/
public const FEATURE_TOGGLE_MISSING_STRATEGY_HANDLER = 'unleash.event.toggle.missing_strategy_handler';
/**
* Triggered when fetching features from server fails.
*
* @Event("Unleash\Client\Event\FetchingDataFailedEvent")
*/
public const FETCHING_DATA_FAILED = 'unleash.event.server.fetching_failed';
/**
* Triggered when feature has impression data enabled.
*
* @Event("Unleash\Client\Event\ImpressionDataEvent")
*/
public const IMPRESSION_DATA = 'unleash.events.impression_data';
}