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