summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2013-01-21 16:19:16 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2013-01-21 16:19:16 +0100
commite69d4134a2c4c854132b98e2024d6434f36ebaa2 (patch)
tree9ca221db7f69e103e29b2ba693a976df079ca728
parent8cd00e30f4a13b0c57c5d98613c3dd533bc1c35a (diff)
parent95bb02a33ee5f8790ea476853bf177a9c4a3c014 (diff)
downloadsymfony-security-e69d4134a2c4c854132b98e2024d6434f36ebaa2.zip
symfony-security-e69d4134a2c4c854132b98e2024d6434f36ebaa2.tar.gz
symfony-security-e69d4134a2c4c854132b98e2024d6434f36ebaa2.tar.bz2
merged branch franmomu/added_phpdoc_security_events (PR #6818)v2.0.24v2.0.23
This PR was squashed before being merged into the 2.0 branch (closes #6818). Commits ------- 598ae9d [Security] PHPDoc in SecurityEvents Discussion ---------- [Security] PHPDoc in SecurityEvents | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | I'm not sure about the description given.
-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';
}