*/
protected $credits = [];
+ /**
+ * @var array
+ */
+ protected $config = [];
+
/**
* Any thing else in the $info that hasn't
* already been processed
return [
'globals' => $this->globals,
+ 'config' => $this->config,
'defines' => $this->defines,
'callbacks' => $this->callbacks,
'credits' => $this->credits,
$value = "$dir/$value";
}
$this->addConfigGlobal( "$prefix$key", $value, $info['name'] );
+ $data['providedby'] = $info['name'];
+ if ( isset( $info['ConfigRegistry'][0] ) ) {
+ $data['configregistry'] = array_keys( $info['ConfigRegistry'] )[0];
+ }
+ $this->config[$key] = $data;
}
}
}
* @return array With following keys:
* 'globals' - variables to be set to $GLOBALS
* 'defines' - constants to define
+ * 'config' - configuration information
* 'callbacks' - functions to be executed by the registry
* 'credits' - metadata to be stored by registry
* 'attributes' - registration info which isn't a global variable