public function dispatchOnAdminUserRegisteredEvent(AdminUserInterface $adminUser)
    {
        $event = new AdminUserRegisterEvent($adminUser);
        $this
            ->eventDispatcher
            ->dispatch(
                ElcodiUserEvents::ADMINUSER_REGISTER,
                $event
            );

        return $this;
    }
public function dispatchOnAdminUserRegisteredEvent(AdminUserInterface $adminUser)
    {
        $event = new AdminUserRegisterEvent($adminUser);
        $this
            ->eventDispatcher
            ->dispatch(
                ElcodiUserEvents::ADMINUSER_REGISTER,
                $event
            );

        return $this;
    }
public function dispatchOnAdminUserRegisteredEvent ( AdminUserInterface $ adminUser ) { $ event = new AdminUserRegisterEvent ( $ adminUser ) ; $ this -> eventDispatcher -> dispatch ( ElcodiUserEvents :: ADMINUSER_REGISTER , $ event ) ; return $ this ; }
Dispatch admin user created event.

@param AdminUserInterface $adminUser AdminUser registered

@return $this Self object
Dispatch admin user created event .