Event/UserEvent.php
<?php
namespace Beelab\UserBundle\Event;
use Beelab\UserBundle\User\UserInterface;
use Symfony\Component\EventDispatcher\Event;
class UserEvent extends Event
{
/**
* @var UserInterface
*/
private $user;
/**
* @param UserInterface $user
*/
public function __construct(UserInterface $user)
{
$this->user = $user;
}
/**
* @return UserInterface
*/
public function getUser()
{
return $this->user;
}
}