コード例 #1
0
ファイル: AdminUserManager.php プロジェクト: hd-deman/elcodi
 /**
  * Register new User into the web.
  * Creates new token given a user, with related Role set.
  *
  * @param AbstractUserInterface $user        User to register
  * @param string                $providerKey Provider key
  *
  * @return $this self Object
  */
 public function register(AbstractUserInterface $user, $providerKey)
 {
     parent::register($user, $providerKey);
     $event = new AdminUserRegisterEvent($user);
     $this->eventDispatcher->dispatch(ElcodiUserEvents::ADMINUSER_REGISTER, $event);
     return $this;
 }
コード例 #2
0
ファイル: AdminUserManager.php プロジェクト: axelvnk/elcodi
 /**
  * Register new User into the web.
  * Creates new token given a user, with related Role set.
  *
  * @param  AbstractUserInterface $user User to register
  * @return $this                 Self object
  * @internal param string $providerKey Provider key
  *
  */
 public function register(AbstractUserInterface $user)
 {
     parent::register($user);
     /**
      * @var AdminUserInterface $user
      */
     $this->userEventDispatcher->dispatchOnAdminUserRegisteredEvent($user);
     return $this;
 }