diff options
author | Bernhard Schussek <bernhard.schussek@symfony-project.com> | 2011-03-13 19:16:56 +0100 |
---|---|---|
committer | Bernhard Schussek <bernhard.schussek@symfony-project.com> | 2011-03-13 19:49:10 +0100 |
commit | 27a103510af2a2a730937e39db0530b57f9b507a (patch) | |
tree | 7973136ac2d2fccf1b5c79e12d1de6bafaa99935 /Http/Event/InteractiveLoginEvent.php | |
parent | 263ba4d42870ef5f991540c8b039c2472ba8b204 (diff) | |
download | symfony-security-27a103510af2a2a730937e39db0530b57f9b507a.zip symfony-security-27a103510af2a2a730937e39db0530b57f9b507a.tar.gz symfony-security-27a103510af2a2a730937e39db0530b57f9b507a.tar.bz2 |
Switched from Doctrine's EventManager implementation to the EventManager clone in Symfony2 (now called EventDispatcher again)
Diffstat (limited to 'Http/Event/InteractiveLoginEvent.php')
-rw-r--r-- | Http/Event/InteractiveLoginEvent.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Http/Event/InteractiveLoginEvent.php b/Http/Event/InteractiveLoginEvent.php new file mode 100644 index 0000000..1265fe2 --- /dev/null +++ b/Http/Event/InteractiveLoginEvent.php @@ -0,0 +1,38 @@ +<?php + +/* + * This file is part of the Symfony package. + * + * (c) Fabien Potencier <fabien.potencier@symfony-project.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Security\Http\Event; + +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\EventDispatcher\Event; + +class InteractiveLoginEvent extends Event +{ + private $request; + + private $authenticationToken; + + public function __construct(Request $request, $authenticationToken) + { + $this->request = $request; + $this->authenticationToken = $authenticationToken; + } + + public function getRequest() + { + return $this->request; + } + + public function getAuthenticationToken() + { + return $this->authenticationToken; + } +}
\ No newline at end of file |