File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Core ;
13
13
14
+ use Symfony \Component \Security \Core \Event \AuthenticationFailureEvent ;
15
+ use Symfony \Component \Security \Core \Event \AuthenticationSuccessEvent ;
16
+
14
17
final class AuthenticationEvents
15
18
{
16
19
/**
@@ -28,4 +31,14 @@ final class AuthenticationEvents
28
31
* @Event("Symfony\Component\Security\Core\Event\AuthenticationFailureEvent")
29
32
*/
30
33
const AUTHENTICATION_FAILURE = 'security.authentication.failure ' ;
34
+
35
+ /**
36
+ * Event aliases.
37
+ *
38
+ * These aliases can be consumed by RegisterListenersPass.
39
+ */
40
+ const ALIASES = [
41
+ AuthenticationSuccessEvent::class => self ::AUTHENTICATION_SUCCESS ,
42
+ AuthenticationFailureEvent::class => self ::AUTHENTICATION_FAILURE ,
43
+ ];
31
44
}
You can’t perform that action at this time.
0 commit comments