public function refresh($account)
    {
        $identity = $this->identity($account);

        return $this->findByIdentity([$identity => $account->$identity]);
    }
public function refresh($account)
    {
        $identity = $this->identity($account);

        return $this->findByIdentity([$identity => $account->$identity]);
    }
public function refresh ( $ account ) { $ identity = $ this -> identity ( $ account ) ; return $ this -> findByIdentity ( [ $ identity => $ account -> $ identity ] ) ; }
todo interface for identity
@param UserInterface $account
@return UserInterface
todo interface for identity