app = $app; $this->token = $token; try { $datas = $app['tokens']->helloToken($token); $usr_id = $datas['usr_id']; $this->user = User_Adapter::getInstance($usr_id, $this->app); } catch (Exception_NotFound $e) { throw new Exception_Session_WrongToken(); } return $this; } /** * * @return Session_Authentication_Token */ public function prelog() { return $this; } /** * * @return User_Adapter */ public function signOn() { return $this->user; } /** * * @return User_Adapter */ public function get_user() { return $this->user; } /** * * @return Session_Authentication_Token */ public function postlog() { return $this; } }