示例#1
0
 /**
  * @param ConfigProxy $janusConfig
  * @param $connectionType
  * @return mixed
  * @throws \Exception
  */
 protected function findJanusMetadataConfig(ConfigProxy $janusConfig, $connectionType)
 {
     $configKey = "metadatafields.{$connectionType}";
     if (!$janusConfig->hasValue($configKey)) {
         throw new \Exception("No metadatafields config found for type {$connectionType}");
     }
     $metadataFieldsConfig = $janusConfig->getArray($configKey);
     return $metadataFieldsConfig;
 }