public function dispatchOnUserRegisteredEvent(AbstractUserInterface $user)
    {
        $event = new UserRegisterEvent($user);
        $this
            ->eventDispatcher
            ->dispatch(
                ElcodiUserEvents::ABSTRACTUSER_REGISTER,
                $event
            );

        return $this;
    }
public function dispatchOnUserRegisteredEvent(AbstractUserInterface $user)
    {
        $event = new UserRegisterEvent($user);
        $this
            ->eventDispatcher
            ->dispatch(
                ElcodiUserEvents::ABSTRACTUSER_REGISTER,
                $event
            );

        return $this;
    }
public function dispatchOnUserRegisteredEvent ( AbstractUserInterface $ user ) { $ event = new UserRegisterEvent ( $ user ) ; $ this -> eventDispatcher -> dispatch ( ElcodiUserEvents :: ABSTRACTUSER_REGISTER , $ event ) ; return $ this ; }
Dispatch user created event.

@param AbstractUserInterface $user User registered

@return $this Self object
Dispatch user created event .