summaryrefslogtreecommitdiffstats
path: root/Core/Event/AuthenticationEvent.php
diff options
context:
space:
mode:
authorJohannes Schmitt <schmittjoh@gmail.com>2011-07-07 21:28:39 +0200
committerDariusz Górecki <darek.krk@gmail.com>2011-11-22 14:44:41 +0100
commita02663ada4f50a7e49961085a4ef55e185226d6e (patch)
treeadfac065807c43806848649f5da78ee0dad0c03c /Core/Event/AuthenticationEvent.php
parente5ad66509f2739df908408c73b783186c43d07bf (diff)
downloadsymfony-security-a02663ada4f50a7e49961085a4ef55e185226d6e.zip
symfony-security-a02663ada4f50a7e49961085a4ef55e185226d6e.tar.gz
symfony-security-a02663ada4f50a7e49961085a4ef55e185226d6e.tar.bz2
added authentication success/failure events
Diffstat (limited to 'Core/Event/AuthenticationEvent.php')
-rw-r--r--Core/Event/AuthenticationEvent.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/Core/Event/AuthenticationEvent.php b/Core/Event/AuthenticationEvent.php
new file mode 100644
index 0000000..4c32b21
--- /dev/null
+++ b/Core/Event/AuthenticationEvent.php
@@ -0,0 +1,35 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Security\Core\Event;
+
+use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
+use Symfony\Component\EventDispatcher\Event;
+
+/**
+ * This is a general purpose authentication event.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class AuthenticationEvent extends Event
+{
+ private $authenticationToken;
+
+ public function __construct(TokenInterface $token)
+ {
+ $this->authenticationToken = $token;
+ }
+
+ public function getAuthenticationToken()
+ {
+ return $this->authenticationToken;
+ }
+} \ No newline at end of file