Skip to content

Instantly share code, notes, and snippets.

@rccc
Created March 30, 2017 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rccc/c1c6dedb7881bd52d7e0d5e112513fd3 to your computer and use it in GitHub Desktop.
Save rccc/c1c6dedb7881bd52d7e0d5e112513fd3 to your computer and use it in GitHub Desktop.
namespace UserBundle\Event;
use Symfony\Component\EventDispatcher\Event;
use UserBundle\Entity\User;
class ExportEvent extends Event
{
const USER_REGISTERED = 'user.registered';
protected $usr;
public function __construct(User $user= null)
{
$this->user = $user;
}
public function getUser()
{
return $this->user;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment