summaryrefslogtreecommitdiffstats
path: root/Http/Event
diff options
context:
space:
mode:
Diffstat (limited to 'Http/Event')
-rw-r--r--Http/Event/InteractiveLoginEventArgs.php38
-rw-r--r--Http/Event/SwitchUserEventArgs.php39
2 files changed, 77 insertions, 0 deletions
diff --git a/Http/Event/InteractiveLoginEventArgs.php b/Http/Event/InteractiveLoginEventArgs.php
new file mode 100644
index 0000000..7ca4f4e
--- /dev/null
+++ b/Http/Event/InteractiveLoginEventArgs.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 Doctrine\Common\EventArgs;
+
+class InteractiveLoginEventArgs extends EventArgs
+{
+ 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
diff --git a/Http/Event/SwitchUserEventArgs.php b/Http/Event/SwitchUserEventArgs.php
new file mode 100644
index 0000000..be38036
--- /dev/null
+++ b/Http/Event/SwitchUserEventArgs.php
@@ -0,0 +1,39 @@
+<?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\Security\Core\User\AccountInterface;
+use Doctrine\Common\EventArgs;
+
+class SwitchUserEventArgs extends EventArgs
+{
+ private $request;
+
+ private $targetUser;
+
+ public function __construct(Request $request, AccountInterface $targetUser)
+ {
+ $this->request = $request;
+ $this->targetUser = $targetUser;
+ }
+
+ public function getRequest()
+ {
+ return $this->request;
+ }
+
+ public function getTargetUser()
+ {
+ return $this->targetUser;
+ }
+} \ No newline at end of file