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