FOS\UserBundle\Model\UserManager::loadUserByAccount PHP Method

loadUserByAccount() public method

It is strongly discouraged to use this method manually as it bypasses all ACL checks.
public loadUserByAccount ( Symfony\Component\Security\Core\User\AccountInterface $user ) : User
$user Symfony\Component\Security\Core\User\AccountInterface
return User
    public function loadUserByAccount(AccountInterface $user)
    {
        if (!$user instanceof User) {
            throw new UnsupportedAccountException('Account is not supported.');
        }
        return $this->loadUserByUsername($user->getUsername());
    }