summaryrefslogtreecommitdiff
path: root/app/Event/AuthEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Event/AuthEvent.php')
-rw-r--r--app/Event/AuthEvent.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/Event/AuthEvent.php b/app/Event/AuthEvent.php
new file mode 100644
index 00000000..ec1bec99
--- /dev/null
+++ b/app/Event/AuthEvent.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Event;
+
+use Symfony\Component\EventDispatcher\Event as BaseEvent;
+
+class AuthEvent extends BaseEvent
+{
+ private $auth_name;
+ private $user_id;
+
+ public function __construct($auth_name, $user_id)
+ {
+ $this->auth_name = $auth_name;
+ $this->user_id = $user_id;
+ }
+
+ public function getUserId()
+ {
+ return $this->user_id;
+ }
+
+ public function getAuthType()
+ {
+ return $this->auth_name;
+ }
+}