MediaWiki
master
|
Public Member Functions | |
extractInfo ($path, array $info, $version) | |
getExtraAutoloaderPaths ($dir, array $info) | |
Get the path for additional autoloaders, e.g. More... | |
getExtractedInfo () | |
getRequirements (array $info) | |
Get the requirements for the provided info. More... | |
Protected Member Functions | |
extractConfig1 (array $info) | |
Set configuration settings for manifest_version == 1. More... | |
extractConfig2 (array $info, $dir) | |
Set configuration settings for manifest_version == 2. More... | |
extractCredits ($path, array $info) | |
extractExtensionMessagesFiles ($dir, array $info) | |
extractHooks (array $info) | |
extractMessagesDirs ($dir, array $info) | |
Set message-related settings, which need to be expanded to use absolute paths. More... | |
extractNamespaces (array $info) | |
Register namespaces with the appropriate global settings. More... | |
extractParserTestFiles ($dir, array $info) | |
extractResourceLoaderModules ($dir, array $info) | |
storeToArray ($path, $name, $value, &$array) | |
Protected Attributes | |
array | $attributes = [] |
Any thing else in the $info that hasn't already been processed. More... | |
callable[] | $callbacks = [] |
Things to be called once registration of these extensions are done. More... | |
array | $credits = [] |
array array | $defines = [] |
Things that should be define()'d. More... | |
array | $globals |
Stuff that is going to be set to $GLOBALS. More... | |
Static Protected Attributes | |
static array static array | $creditsAttributes |
Keys that are part of the extension credits. More... | |
static array | $globalSettings |
Keys that should be set to $GLOBALS. More... | |
static array | $mergeStrategies |
Mapping of global settings to their specific merge strategies. More... | |
static array | $notAttributes |
Things that are not 'attributes', but are not in $globalSettings or $creditsAttributes. More... | |
Definition at line 3 of file ExtensionProcessor.php.
|
protected |
Set configuration settings for manifest_version == 1.
array | $info |
Definition at line 366 of file ExtensionProcessor.php.
Referenced by extractInfo().
|
protected |
Set configuration settings for manifest_version == 2.
array | $info | |
string | $dir |
Definition at line 389 of file ExtensionProcessor.php.
References $value, as, globals, and ExtensionRegistry\MERGE_STRATEGY.
Referenced by extractInfo().
|
protected |
string | $path | |
array | $info |
Exception |
Definition at line 335 of file ExtensionProcessor.php.
References $credits, $name, $path, as, credits, and globals.
Referenced by extractInfo().
|
protected |
Definition at line 305 of file ExtensionProcessor.php.
References $dir, globals, and use.
Referenced by extractInfo().
|
protected |
Definition at line 222 of file ExtensionProcessor.php.
References $name, $value, as, and globals.
Referenced by extractInfo().
ExtensionProcessor::extractInfo | ( | $path, | |
array | $info, | ||
$version | |||
) |
string | $path | |
array | $info | |
int | $version | manifest_version for info |
Implements Processor.
Definition at line 164 of file ExtensionProcessor.php.
References $dir, $path, $version, as, extractConfig1(), extractConfig2(), extractCredits(), extractExtensionMessagesFiles(), extractHooks(), extractMessagesDirs(), extractNamespaces(), extractParserTestFiles(), extractResourceLoaderModules(), globals, and storeToArray().
Referenced by ExtensionProcessorTest\testExtractConfig1(), and ExtensionProcessorTest\testExtractConfig2().
|
protected |
Set message-related settings, which need to be expanded to use absolute paths.
string | $dir | |
array | $info |
Definition at line 320 of file ExtensionProcessor.php.
References $files, $name, array(), as, and globals.
Referenced by extractInfo().
|
protected |
Register namespaces with the appropriate global settings.
array | $info |
Definition at line 241 of file ExtensionProcessor.php.
Referenced by extractInfo().
|
protected |
Definition at line 409 of file ExtensionProcessor.php.
References $path, as, and globals.
Referenced by extractInfo().
|
protected |
Definition at line 272 of file ExtensionProcessor.php.
References $dir, $name, as, and globals.
Referenced by extractInfo().
ExtensionProcessor::getExtraAutoloaderPaths | ( | $dir, | |
array | $info | ||
) |
Get the path for additional autoloaders, e.g.
the one of Composer.
string | $dir | |
array | $info |
Implements Processor.
Definition at line 435 of file ExtensionProcessor.php.
References $path.
ExtensionProcessor::getExtractedInfo | ( | ) |
Implements Processor.
Definition at line 195 of file ExtensionProcessor.php.
References $attributes, $callbacks, $credits, $defines, $globals, as, globals, and ExtensionRegistry\MERGE_STRATEGY.
ExtensionProcessor::getRequirements | ( | array | $info | ) |
Get the requirements for the provided info.
array | $info |
Implements Processor.
Definition at line 212 of file ExtensionProcessor.php.
References ExtensionRegistry\MEDIAWIKI_CORE.
|
protected |
string | $path | |
string | $name | |
array | $value | |
array | &$array |
InvalidArgumentException |
Definition at line 424 of file ExtensionProcessor.php.
Referenced by extractInfo().
|
protected |
Any thing else in the $info that hasn't already been processed.
Definition at line 156 of file ExtensionProcessor.php.
Referenced by getExtractedInfo().
|
protected |
Things to be called once registration of these extensions are done.
Definition at line 143 of file ExtensionProcessor.php.
Referenced by getExtractedInfo().
|
protected |
Definition at line 148 of file ExtensionProcessor.php.
Referenced by extractCredits(), and getExtractedInfo().
Keys that are part of the extension credits.
Definition at line 84 of file ExtensionProcessor.php.
Things that should be define()'d.
Definition at line 136 of file ExtensionProcessor.php.
Referenced by getExtractedInfo().
|
protected |
Stuff that is going to be set to $GLOBALS.
Some keys are pre-set to arrays so we can += to them
Definition at line 126 of file ExtensionProcessor.php.
Referenced by MockExtensionProcessor\__construct(), and getExtractedInfo().
|
staticprotected |
Keys that should be set to $GLOBALS.
Definition at line 10 of file ExtensionProcessor.php.
|
staticprotected |
Mapping of global settings to their specific merge strategies.
Definition at line 64 of file ExtensionProcessor.php.
|
staticprotected |
Things that are not 'attributes', but are not in $globalSettings or $creditsAttributes.
Definition at line 101 of file ExtensionProcessor.php.