summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFran Moreno <franmomu@gmail.com>2013-01-21 09:57:59 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2013-01-21 16:19:16 +0100
commit95bb02a33ee5f8790ea476853bf177a9c4a3c014 (patch)
treeb41e02c72d6298820cd1c101e85136183637d85e
parent6319bda841b7b488c33c647e3b4e53b2bcd1f4db (diff)
downloadsymfony-security-95bb02a33ee5f8790ea476853bf177a9c4a3c014.zip
symfony-security-95bb02a33ee5f8790ea476853bf177a9c4a3c014.tar.gz
symfony-security-95bb02a33ee5f8790ea476853bf177a9c4a3c014.tar.bz2
[Security] PHPDoc in SecurityEvents
-rw-r--r--Http/SecurityEvents.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/Http/SecurityEvents.php b/Http/SecurityEvents.php
index a6c4e42..45fae29 100644
--- a/Http/SecurityEvents.php
+++ b/Http/SecurityEvents.php
@@ -13,7 +13,25 @@ namespace Symfony\Component\Security\Http;
final class SecurityEvents
{
+ /**
+ * The INTERACTIVE_LOGIN event occurs after a user is logged in
+ * interactively for authentication based on http, cookies or X509.
+ *
+ * The event listener method receives a
+ * Symfony\Component\Security\Http\Event\InteractiveLoginEvent instance.
+ *
+ * @var string
+ */
const INTERACTIVE_LOGIN = 'security.interactive_login';
+ /**
+ * The SWITCH_USER event occurs before switch to another user and
+ * before exit from an already switched user.
+ *
+ * The event listener method receives a
+ * Symfony\Component\Security\Http\Event\SwitchUserEvent instance.
+ *
+ * @var string
+ */
const SWITCH_USER = 'security.switch_user';
}