AppBundle\Entity\User::getPassword PHP Method

getPassword() public method

public getPassword ( )
    public function getPassword()
    {
        return $this->password;
    }

Usage Example

コード例 #1
0
 /**
  * 认证用户
  */
 public function authenticate(User $user, $providerKey)
 {
     $authenticationToken = new UsernamePasswordToken($user, $user->getPassword(), $providerKey, $user->getRoles());
     $authenticationEvent = new InteractiveLoginEvent($this->request, $authenticationToken);
     $this->tokenStorage->setToken($authenticationToken);
     $this->dispatcher->dispatch(SecurityEvents::INTERACTIVE_LOGIN, $authenticationEvent);
 }
All Usage Examples Of AppBundle\Entity\User::getPassword