public function __construct()
 {
     $apiConfig = Config::getAll();
     $this->path = $apiConfig['ioFileCache_directory'];
 }
 /**
  * @param string $url the url to set
  */
 public function setUrl($url)
 {
     if (substr($url, 0, 4) == 'http') {
         $this->url = $url;
     } else {
         // Force the path become relative.
         if (substr($url, 0, 1) !== '/') {
             $url = '/' . $url;
         }
         $this->url = Config::get('basePath') . $url;
     }
 }
 /**
  * Declare if objects should be returned by the api service classes.
  *
  * @param boolean $useObjects True if objects should be returned by the service classes.
  * False if associative arrays should be returned (default behavior).
  * @experimental
  */
 public function setUseObjects($useObjects)
 {
     $apiConfig = Config::getAll();
     $apiConfig['use_objects'] = $useObjects;
 }