diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-27 21:11:11 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-27 21:11:11 -0500 |
commit | 88d84073aecbe8bdc5f10825b6d7ca6b81c5f7b1 (patch) | |
tree | e823c8e13e9ffba115c8e1f5a05a514cac5322df /app/Event | |
parent | 0a14c8d5e5538e487dd6b012771f72aea6f4d5a6 (diff) |
Add more subscribers
Diffstat (limited to 'app/Event')
-rw-r--r-- | app/Event/AuthEvent.php | 27 |
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; + } +} |