8000 merged branch franmomu/add_phpdoc_to_authentication_events (PR #6831) · 77web/symfony@0c3d0db · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c3d0db

Browse files
committed
merged branch franmomu/add_phpdoc_to_authentication_events (PR symfony#6831)
This PR was merged into the 2.1 branch. Commits ------- e7624b6 [Security] Add PHPDoc to AuthenticationEvents Discussion ---------- [Security] Added PHPDoc to AuthenticationEvents | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR |
2 parents 8c804c7 + e7624b6 commit 0c3d0db

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Symfony/Component/Security/Core/AuthenticationEvents.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,26 @@
1313

1414
final class AuthenticationEvents
1515
{
16+
/**
17+
* The AUTHENTICATION_SUCCESS event occurs after a user is authenticated
18+
* by one provider.
19+
*
20+
* The event listener method receives a
21+
* Symfony\Component\Security\Core\Event\AuthenticationEvent instance.
22+
*
23+
* @var string
24+
*/
1625
const AUTHENTICATION_SUCCESS = 'security.authentication.success';
1726

27+
/**
28+
* The AUTHENTICATION_FAILURE event occurs after a user cannot be
29+
* authenticated by any of the providers.
30+
*
31+
* The event listener method receives a
32+
* Symfony\Component\Security\Core\Event\AuthenticationFailureEvent
33+
* instance.
34+
*
35+
* @var string
36+
*/
1837
const AUTHENTICATION_FAILURE = 'security.authentication.failure';
1938
}

0 commit comments

Comments
 (0)
0