forked from Sylius/SyliusUserBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUserEvents.php
54 lines (51 loc) · 2.23 KB
/
UserEvents.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
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\UserBundle;
/**
* Contains all events thrown in the SyliusUserBundle.
*/
final class UserEvents
{
/**
* The REQUEST_RESET_PASSWORD_TOKEN event occurs when the resetting process is initialized and user requested for confirmation token.
*
* This event allows you to send mail with verification token.
* The event listener method receives a Symfony\Component\EventDispatcher\GenericEvent instance.
*/
const REQUEST_RESET_PASSWORD_TOKEN = 'sylius.user.password_reset.request.token';
/**
* The REQUEST_RESET_PASSWORD_PIN event occurs when the resetting process is initialized and user requested for confirmation pin.
*
* This event allows you to send mail with verification pin.
* The event listener method receives a Symfony\Component\EventDispatcher\GenericEvent instance.
*/
const REQUEST_RESET_PASSWORD_PIN = 'sylius.user.password_reset.request.pin';
/**
* 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 Symfony\Component\EventDispatcher\GenericEvent instance.
*/
const PASSWORD_RESET_SUCCESS = 'sylius.user.password_reset.success';
/**
* The RESETTING_CHANGE_SUCCESS event occurs when the change form is submitted successfully.
*
* This event allows you to set the response instead of using the default one.
* The event listener method receives a Symfony\Component\EventDispatcher\GenericEvent instance.
*/
const PASSWORD_CHANGE_SUCCESS = 'sylius.user.password_change.success';
/**
* 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 Sylius\Bundle\UserBundle\Event\UserEvent instance.
*/
const SECURITY_IMPLICIT_LOGIN = 'sylius.user.security.implicit_login';
}