-
Notifications
You must be signed in to change notification settings - Fork 7
/
FOSUserEvents.php
196 lines (172 loc) · 8.19 KB
/
FOSUserEvents.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace Tecnocreaciones\Bundle\AjaxFOSUserBundle;
/**
* Description of FOSUserEvents
*
* @author matias
*/
/**
* Contains all events thrown in the FOSUserBundle
*/
final class FOSUserEvents
{
/**
* The CHANGE_PASSWORD_INITIALIZE event occurs when the change password process is initialized.
*
* This event allows you to modify the default values of the user before binding the form.
* The event listener method receives a FOS\UserBundle\Event\GetResponseUserEvent instance.
*/
const CHANGE_PASSWORD_INITIALIZE = 'fos_user.change_password.edit.initialize';
/**
* The CHANGE_PASSWORD_SUCCESS event occurs when the change password form is submitted successfully.
*
* This event allows you to set the response instead of using the default one.
* The event listener method receives a FOS\UserBundle\Event\FormEvent instance.
*/
const CHANGE_PASSWORD_SUCCESS = 'fos_user.change_password.edit.success';
/**
* The CHANGE_PASSWORD_COMPLETED event occurs after saving the user in the change password process.
*
* This event allows you to access the response which will be sent.
* The event listener method receives a FOS\UserBundle\Event\FilterUserResponseEvent instance.
*/
const CHANGE_PASSWORD_COMPLETED = 'fos_user.change_password.edit.completed';
/**
* The GROUP_CREATE_INITIALIZE event occurs when the group creation process is initialized.
*
* This event allows you to modify the default values of the user before binding the form.
* The event listener method receives a FOS\UserBundle\Event\GroupEvent instance.
*/
const GROUP_CREATE_INITIALIZE = 'fos_user.group.create.initialize';
/**
* The GROUP_CREATE_SUCCESS event occurs when the group creation form is submitted successfully.
*
* This event allows you to set the response instead of using the default one.
* The event listener method receives a FOS\UserBundle\Event\FormEvent instance.
*/
const GROUP_CREATE_SUCCESS = 'fos_user.group.create.success';
/**
* The GROUP_CREATE_COMPLETED event occurs after saving the group in the group creation process.
*
* This event allows you to access the response which will be sent.
* The event listener method receives a FOS\UserBundle\Event\FilterGroupResponseEvent instance.
*/
const GROUP_CREATE_COMPLETED = 'fos_user.group.create.completed';
/**
* The GROUP_DELETE_COMPLETED event occurs after deleting the group.
*
* This event allows you to access the response which will be sent.
* The event listener method receives a FOS\UserBundle\Event\FilterGroupResponseEvent instance.
*/
const GROUP_DELETE_COMPLETED = 'fos_user.group.delete.completed';
/**
* The GROUP_EDIT_INITIALIZE event occurs when the group editing process is initialized.
*
* This event allows you to modify the default values of the user before binding the form.
* The event listener method receives a FOS\UserBundle\Event\GetResponseGroupEvent instance.
*/
const GROUP_EDIT_INITIALIZE = 'fos_user.group.edit.initialize';
/**
* The GROUP_EDIT_SUCCESS event occurs when the group edit form is submitted successfully.
*
* This event allows you to set the response instead of using the default one.
* The event listener method receives a FOS\UserBundle\Event\FormEvent instance.
*/
const GROUP_EDIT_SUCCESS = 'fos_user.group.edit.success';
/**
* The GROUP_EDIT_COMPLETED event occurs after saving the group in the group edit process.
*
* This event allows you to access the response which will be sent.
* The event listener method receives a FOS\UserBundle\Event\FilterGroupResponseEvent instance.
*/
const GROUP_EDIT_COMPLETED = 'fos_user.group.edit.completed';
/**
* The PROFILE_EDIT_INITIALIZE event occurs when the profile editing process is initialized.
*
* This event allows you to modify the default values of the user before binding the form.
* The event listener method receives a FOS\UserBundle\Event\GetResponseUserEvent instance.
*/
const PROFILE_EDIT_INITIALIZE = 'fos_user.profile.edit.initialize';
/**
* The PROFILE_EDIT_SUCCESS event occurs when the profile edit form is submitted successfully.
*
* This event allows you to set the response instead of using the default one.
* The event listener method receives a FOS\UserBundle\Event\FormEvent instance.
*/
const PROFILE_EDIT_SUCCESS = 'fos_user.profile.edit.success';
/**
* The PROFILE_EDIT_COMPLETED event occurs after saving the user in the profile edit process.
*
* This event allows you to access the response which will be sent.
* The event listener method receives a FOS\UserBundle\Event\FilterUserResponseEvent instance.
*/
const PROFILE_EDIT_COMPLETED = 'fos_user.profile.edit.completed';
/**
* The REGISTRATION_INITIALIZE event occurs when the registration process is initialized.
*
* This event allows you to modify the default values of the user before binding the form.
* The event listener method receives a FOS\UserBundle\Event\UserEvent instance.
*/
const REGISTRATION_INITIALIZE = 'fos_user.registration.initialize';
/**
* The REGISTRATION_SUCCESS event occurs when the registration form is submitted successfully.
*
* This event allows you to set the response instead of using the default one.
* The event listener method receives a FOS\UserBundle\Event\FormEvent instance.
*/
const REGISTRATION_SUCCESS = 'fos_user.registration.success';
/**
* The REGISTRATION_COMPLETED event occurs after saving the user in the registration process.
*
* This event allows you to access the response which will be sent.
* The event listener method receives a FOS\UserBundle\Event\FilterUserResponseEvent instance.
*/
const REGISTRATION_COMPLETED = 'fos_user.registration.completed';
/**
* The REGISTRATION_CONFIRM event occurs just before confirming the account.
*
* This event allows you to access the user which will be confirmed.
* The event listener method receives a FOS\UserBundle\Event\GetResponseUserEvent instance.
*/
const REGISTRATION_CONFIRM = 'fos_user.registration.confirm';
/**
* The REGISTRATION_CONFIRMED event occurs after confirming the account.
*
* This event allows you to access the response which will be sent.
* The event listener method receives a FOS\UserBundle\Event\FilterUserResponseEvent instance.
*/
const REGISTRATION_CONFIRMED = 'fos_user.registration.confirmed';
/**
* The RESETTING_RESET_INITIALIZE event occurs when the resetting process is initialized.
*
* This event allows you to set the response to bypass the processing.
* The event listener method receives a FOS\UserBundle\Event\GetResponseUserEvent instance.
*/
const RESETTING_RESET_INITIALIZE = 'fos_user.resetting.reset.initialize';
/**
* The RESETTING_RESET_SUCCESS event occurs when the resetting form is submitted successfully.
*
* This event allows you to set the response instead of using the default one.
* The event listener method receives a FOS\UserBundle\Event\FormEvent instance.
*/
const RESETTING_RESET_SUCCESS = 'fos_user.resetting.reset.success';
/**
* The RESETTING_RESET_COMPLETED event occurs after saving the user in the resetting process.
*
* This event allows you to access the response which will be sent.
* The event listener method receives a FOS\UserBundle\Event\FilterUserResponseEvent instance.
*/
const RESETTING_RESET_COMPLETED = 'fos_user.resetting.reset.completed';
/**
* The SECURITY_IMPLICIT_LOGIN event occurs when the user is logged in programmatically.
*
* This event allows you to access the response which will be sent.
* The event listener method receives a FOS\UserBundle\Event\UserEvent instance.
*/
const SECURITY_IMPLICIT_LOGIN = 'fos_user.security.implicit_login';
}