'RecentChangesFlags',
'RemoveCredentialsBlacklist',
'RemoveGroups',
- 'ResourceLoaderLESSVars',
'ResourceLoaderSources',
'RevokePermissions',
'SessionProviders',
*/
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,
}
public function getRequirements( array $info ) {
- return isset( $info['requires'] ) ? $info['requires'] : [];
+ return $info['requires'] ?? [];
}
protected function extractHooks( array $info ) {
}
protected function extractResourceLoaderModules( $dir, array $info ) {
- $defaultPaths = isset( $info['ResourceFileModulePaths'] )
- ? $info['ResourceFileModulePaths']
- : false;
+ $defaultPaths = $info['ResourceFileModulePaths'] ?? false;
if ( isset( $defaultPaths['localBasePath'] ) ) {
if ( $defaultPaths['localBasePath'] === '' ) {
// Avoid double slashes (e.g. /extensions/Example//path)
protected function extractCredits( $path, array $info ) {
$credits = [
'path' => $path,
- 'type' => isset( $info['type'] ) ? $info['type'] : 'other',
+ 'type' => $info['type'] ?? 'other',
];
foreach ( self::$creditsAttributes as $attr ) {
if ( isset( $info[$attr] ) ) {
$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;
}
}
}