/** * 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(); }
protected function readBucketConfig($bucketId) { Reader::$client = $this->storageApi; return Reader::read($bucketId); }
/** * 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(); }