The use of classmap-authoratative: true provides a measurable performance improvement for MediaWiki on the WMF production cluster, but that environment really uses the composer.json in the mediawiki/vendor.git repo and not the composer.json in mediawiki/core.git. Since this setting is merely performance enhancing and can be worked around for WMF and other large scale users, it seems reasonable to change the default behavior to be more friendly to development use where there may be legitimate reasons for PSR0/4 autoloaders (eg bootstrapped tests in extensions). Bug: T107682 Change-Id: I805c1b82eb6bc93bf3a74a8a9d07e34f2f8c645f
74 lines
1.8 KiB
JSON
74 lines
1.8 KiB
JSON
{
|
|
"name": "mediawiki/core",
|
|
"description": "Free software wiki application developed by the Wikimedia Foundation and others",
|
|
"keywords": ["mediawiki", "wiki"],
|
|
"homepage": "https://www.mediawiki.org/",
|
|
"authors": [
|
|
{
|
|
"name": "MediaWiki Community",
|
|
"homepage": "https://www.mediawiki.org/wiki/Special:Version/Credits"
|
|
}
|
|
],
|
|
"license": "GPL-2.0+",
|
|
"support": {
|
|
"issues": "https://bugs.mediawiki.org/",
|
|
"irc": "irc://irc.freenode.net/mediawiki",
|
|
"wiki": "https://www.mediawiki.org/"
|
|
},
|
|
"require": {
|
|
"cssjanus/cssjanus": "1.1.1",
|
|
"ext-iconv": "*",
|
|
"leafo/lessphp": "0.5.0",
|
|
"liuggio/statsd-php-client": "1.0.16",
|
|
"mediawiki/at-ease": "1.0.0",
|
|
"oojs/oojs-ui": "0.12.2",
|
|
"php": ">=5.3.3",
|
|
"psr/log": "1.0.0",
|
|
"wikimedia/cdb": "1.0.1",
|
|
"wikimedia/assert": "0.2.2",
|
|
"wikimedia/composer-merge-plugin": "1.2.1",
|
|
"wikimedia/utfnormal": "1.0.2",
|
|
"wikimedia/wrappedstring": "2.0.0",
|
|
"zordius/lightncandy": "0.21"
|
|
},
|
|
"require-dev": {
|
|
"jakub-onderka/php-parallel-lint": "0.9",
|
|
"justinrainbow/json-schema": "~1.3",
|
|
"phpunit/phpunit": "3.7.37",
|
|
"mediawiki/mediawiki-codesniffer": "0.3.0"
|
|
},
|
|
"suggest": {
|
|
"ext-fileinfo": "*",
|
|
"ext-intl": "*",
|
|
"ext-mbstring": "*",
|
|
"ext-wikidiff2": "*",
|
|
"ext-apc": "*",
|
|
"monolog/monolog": "*"
|
|
},
|
|
"autoload": {
|
|
"psr-0": {
|
|
"ComposerHookHandler": "includes/composer"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"lint": "parallel-lint --exclude vendor",
|
|
"phpcs": "phpcs -p $PHPCS_ARGS",
|
|
"test": [
|
|
"composer lint",
|
|
"composer phpcs"
|
|
],
|
|
"pre-update-cmd": "ComposerHookHandler::onPreUpdate",
|
|
"pre-install-cmd": "ComposerHookHandler::onPreInstall"
|
|
},
|
|
"config": {
|
|
"prepend-autoloader": false,
|
|
"optimize-autoloader": true
|
|
},
|
|
"extra": {
|
|
"merge-plugin": {
|
|
"include": [
|
|
"composer.local.json"
|
|
]
|
|
}
|
|
}
|
|
}
|