public function getUserFromSession(Session $session)
    {
        $cl = $this->getUserClass();
        $this->user = new $cl;
        $this->user->obtainFromSession($session);
        return $this->user;
    }
public function getUserFromSession(Session $session)
    {
        $cl = $this->getUserClass();
        $this->user = new $cl;
        $this->user->obtainFromSession($session);
        return $this->user;
    }
public function getUserFromSession ( Session $ session ) { $ cl = $ this -> getUserClass ( ) ; $ this -> user = new $ cl ; $ this -> user -> obtainFromSession ( $ session ) ; return $ this -> user ; }
Obtain the current user from the active session
@param Wedeto\HTTP\Session $session The session object
@return Wedeto\Auth\UserInteface The current user. Can be anonymous if
noone is logged in.
Obtain the current user from the active session