Add more subscribers

This commit is contained in:
Frédéric Guillot
2014-12-27 21:11:11 -05:00
parent 0a14c8d5e5
commit 88d84073ae
13 changed files with 101 additions and 65 deletions

27
app/Event/AuthEvent.php Normal file
View File

@@ -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;
}
}