This repository has been archived by the owner on Jan 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Events.php
131 lines (120 loc) · 4.14 KB
/
Events.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php
namespace DABSquared\PushNotificationsBundle;
/**
* Created by JetBrains PhpStorm.
* User: Daniel
* Date: 2/10/13
* Time: 2:09 PM
* To change this template use File | Settings | File Templates.
*/
final class Events
{
/**
* The PRE_PERSIST event occurs prior to the persistence backend
* persisting the Device.
*
* This event allows you to modify the data in the Device prior
* to persisting occuring. The listener receives a
* DABSquared\PushNotificationsBundle\Event\DevicePersistEvent instance.
*
* Persisting of the device can be aborted by calling
* $event->abortPersist()
*
* @var string
*/
const DEVICE_PRE_PERSIST = 'dab_push_notifications.device.pre_persist';
/**
* The POST_PERSIST event occurs after the persistence backend
* persisted the Device.
*
* This event allows you to notify users or perform other actions
* that might require the Device to be persisted before performing
* those actions. The listener receives a
* DABSquared\PushNotificationsBundle\Event\DeviceEvent instance.
*
* @var string
*/
const DEVICE_POST_PERSIST = 'dab_push_notifications.device.post_persist';
/**
* The CREATE event occurs when the manager is asked to create
* a new instance of a Device.
*
* The listener receives a DABSquared\PushNotificationsBundle\Event\DeviceEvent
* instance.
*
* @var string
*/
const DEVICE_CREATE = 'dab_push_notifications.device.create';
/**
* The PRE_PERSIST event occurs prior to the persistence backend
* persisting the Message.
*
* This event allows you to modify the data in the Message prior
* to persisting occuring. The listener receives a
* DABSquared\PushNotificationsBundle\Event\MessagePersistEvent instance.
*
* Persisting of the message can be aborted by calling
* $event->abortPersist()
*
* @var string
*/
const MESSAGE_PRE_PERSIST = 'dab_push_notifications.message.pre_persist';
/**
* The POST_PERSIST event occurs after the persistence backend
* persisted the Message.
*
* This event allows you to notify users or perform other actions
* that might require the Message to be persisted before performing
* those actions. The listener receives a
* DABSquared\PushNotificationsBundle\Event\MessageEvent instance.
*
* @var string
*/
const MESSAGE_POST_PERSIST = 'dab_push_notifications.message.post_persist';
/**
* The CREATE event occurs when the manager is asked to create
* a new instance of a Message.
*
* The listener receives a DABSquared\PushNotificationsBundle\Event\MessageEvent
* instance.
*
* @var string
*/
const MESSAGE_CREATE = 'dab_push_notifications.message.create';
/**
* The PRE_PERSIST event occurs prior to the persistence backend
* persisting the AppEvent.
*
* This event allows you to modify the data in the AppEvent prior
* to persisting occuring. The listener receives a
* DABSquared\PushNotificationsBundle\Event\AppEventPersistEvent instance.
*
* Persisting of the device can be aborted by calling
* $event->abortPersist()
*
* @var string
*/
const APP_EVENT_PRE_PERSIST = 'dab_push_notifications.appevent.pre_persist';
/**
* The POST_PERSIST event occurs after the persistence backend
* persisted the AppEvent.
*
* This event allows you to notify users or perform other actions
* that might require the AppEvent to be persisted before performing
* those actions. The listener receives a
* DABSquared\PushNotificationsBundle\Event\AppEventEvent instance.
*
* @var string
*/
const APP_EVENT_POST_PERSIST = 'dab_push_notifications.appevent.post_persist';
/**
* The CREATE event occurs when the manager is asked to create
* a new instance of a AppEvent.
*
* The listener receives a DABSquared\PushNotificationsBundle\Event\AppEventEvent
* instance.
*
* @var string
*/
const APP_EVENT_CREATE = 'dab_push_notifications.appevent.create';
}