Esempio n. 1
0
 /**
  * Reads configuration from StorageApi
  * could be empty - extractor with no configuration
  */
 public function getConfig()
 {
     Reader::$client = $this->storageApi;
     if ($this->storageApi->bucketExists('sys.c-' . $this->componentName)) {
         return Reader::read('sys.c-' . $this->componentName);
     } else {
         return [];
     }
 }
 public function getConfig()
 {
     Reader::$client = $this->storageApi;
     try {
         $config = Reader::read($this->getSysBucketId());
         if (isset($config['items'])) {
             return $config['items'];
         }
     } catch (\Exception $e) {
     }
     return array();
 }
Esempio n. 3
0
 protected function readBucketConfig($bucketId)
 {
     Reader::$client = $this->storageApi;
     return Reader::read($bucketId);
 }
Esempio n. 4
0
 /**
  * Reads configuration from StorageApi
  * could be empty - extractor with no configuration
  */
 public function getConfig()
 {
     if ($this->storageApi->bucketExists('sys.c-' . $this->appName)) {
         Reader::$client = $this->storageApi;
         return Reader::read('sys.c-' . $this->appName);
     }
     return array();
 }