Spaces:
No application file
No application file
File size: 5,015 Bytes
d2897cd |
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 |
<?php
namespace Mautic\UserBundle;
/**
* Events available for UserBundle.
*/
final class UserEvents
{
/**
* The mautic.user_pre_save event is dispatched right before a user is persisted.
*
* The event listener receives a Mautic\UserBundle\Event\UserEvent instance.
*
* @var string
*/
public const USER_PRE_SAVE = 'mautic.user_pre_save';
/**
* The mautic.user_post_save event is dispatched right after a user is persisted.
*
* The event listener receives a Mautic\UserBundle\Event\UserEvent instance.
*
* @var string
*/
public const USER_POST_SAVE = 'mautic.user_post_save';
/**
* The mautic.user_pre_delete event is dispatched prior to when a user is deleted.
*
* The event listener receives a Mautic\UserBundle\Event\UserEvent instance.
*
* @var string
*/
public const USER_PRE_DELETE = 'mautic.user_pre_delete';
/**
* The mautic.user_post_delete event is dispatched after a user is deleted.
*
* The event listener receives a Mautic\UserBundle\Event\UserEvent instance.
*
* @var string
*/
public const USER_POST_DELETE = 'mautic.user_post_delete';
/**
* The mautic.role_pre_save event is dispatched right before a role is persisted.
*
* The event listener receives a Mautic\UserBundle\Event\RoleEvent instance.
*
* @var string
*/
public const ROLE_PRE_SAVE = 'mautic.role_pre_save';
/**
* The mautic.role_post_save event is dispatched right after a role is persisted.
*
* The event listener receives a Mautic\UserBundle\Event\RoleEvent instance.
*
* @var string
*/
public const ROLE_POST_SAVE = 'mautic.role_post_save';
/**
* The mautic.role_pre_delete event is dispatched prior a role being deleted.
*
* The event listener receives a Mautic\UserBundle\Event\RoleEvent instance.
*
* @var string
*/
public const ROLE_PRE_DELETE = 'mautic.role_pre_delete';
/**
* The mautic.role_post_delete event is dispatched after a role is deleted.
*
* The event listener receives a Mautic\UserBundle\Event\RoleEvent instance.
*
* @var string
*/
public const ROLE_POST_DELETE = 'mautic.role_post_delete';
/**
* The mautic.user_logout event is dispatched during the logout routine giving a chance to carry out tasks before
* the session is lost.
*
* The event listener receives a Mautic\UserBundle\Event\LogoutEvent instance.
*
* @var string
*/
public const USER_LOGOUT = 'mautic.user_logout';
/**
* The mautic.user_login event is dispatched right after a user logs in.
*
* The event listener receives a Mautic\UserBundle\Event\LoginEvent instance.
*
* @var string
*/
public const USER_LOGIN = 'mautic.user_login';
/**
* The mautic.user_form_authentication event is dispatched when a user logs in so that listeners can authenticate a user, i.e. via a 3rd party service.
*
* The event listener receives a Mautic\UserBundle\Event\AuthenticationEvent instance.
*
* @var string
*/
public const USER_FORM_AUTHENTICATION = 'mautic.user_form_authentication';
/**
* The mautic.user_pre_authentication event is dispatched when a user browses a page under /s/ except for /login. This allows support for
* 3rd party authentication providers outside the login form.
*
* The event listener receives a Mautic\UserBundle\Event\AuthenticationEvent instance.
*
* @var string
*/
public const USER_PRE_AUTHENTICATION = 'mautic.user_pre_authentication';
/**
* The mautic.user_authentication_content event is dispatched to collect HTML from plugins to be injected into the UI to assist with
* authentication.
*
* The event listener receives a Mautic\UserBundle\Event\AuthenticationContentEvent instance.
*
* @var string
*/
public const USER_AUTHENTICATION_CONTENT = 'mautic.user_authentication_content';
/**
* The mautic.user_form_post_local_password_authentication event is dispatched after mautic checks if user's local password is correct
* This can be used to validate passwords, usernames, etc.
*
* The event listener receives a Mautic\UserBundle\Event\AuthenticationContentEvent instance.
*
* @var string
*/
public const USER_FORM_POST_LOCAL_PASSWORD_AUTHENTICATION ='mautic.user_form_post_local_password_authentication';
/**
* The mautic.user_password_strength_validation event is dispatched after mautic checks if user's password meets the strength requirements
* This can be used to add custom password requirements.
*
* The event listener receives a Mautic\UserBundle\Event\PasswordStrengthValidateEvent instance.
*
* @var string
*/
public const USER_PASSWORD_STRENGTH_VALIDATION = 'mautic.user_password_strength_validation';
}
|