application = $application; } /** * @param $service * @return \alphayax\utils\Rest */ protected function getService( $service){ return new \alphayax\utils\Rest( static::API_HOST . $service); } /** * @param $service * @return \alphayax\freebox\utils\RestAuth */ protected function getAuthService( $service){ $rest = new \alphayax\freebox\utils\RestAuth( static::API_HOST . $service); $rest->setSessionToken( $this->application->getSessionToken()); return $rest; } }