If an extension specifies a require section in its composer.json, which contains some dependencies, we can assume that this extension needs to load the composer autoloader. The maintenance script convertExtensionToRegistration.php will now check if the extension has such a composer.json and, if so, adds the load_composer_autoloader property in extension.json, which will try to load the autoloader of composer is it is present. Also add a check for existence of a require section in ComposerJson library (ComposerJson::getRequiredDependencies()). Bug: T119766 Change-Id: Icdbc37abc44e642afee2aab4c0e9298d3471124d |
||
|---|---|---|
| .. | ||
| composer | ||
| eventrelayer | ||
| objectcache | ||
| replacers | ||
| virtualrest | ||
| APACHE-LICENSE-2.0.txt | ||
| ArrayUtils.php | ||
| BufferingStatsdDataFactory.php | ||
| Cookie.php | ||
| CSSMin.php | ||
| DeferredStringifier.php | ||
| ExplodeIterator.php | ||
| GenericArrayObject.php | ||
| HashRing.php | ||
| HttpStatus.php | ||
| IEContentAnalyzer.php | ||
| IEUrlExtension.php | ||
| JavaScriptMinifier.php | ||
| jsminplus.php | ||
| MapCacheLRU.php | ||
| MappedIterator.php | ||
| MemoizedCallable.php | ||
| MessageSpecifier.php | ||
| MultiHttpClient.php | ||
| MWMessagePack.php | ||
| ObjectFactory.php | ||
| ProcessCacheLRU.php | ||
| README | ||
| ReplacementArray.php | ||
| RiffExtractor.php | ||
| SamplingStatsdClient.php | ||
| ScopedCallback.php | ||
| StatusValue.php | ||
| StringUtils.php | ||
| Timing.php | ||
| UDPTransport.php | ||
| Xhprof.php | ||
| XmlTypeCheck.php | ||
The classes in this directory ./includes/libs are considered standalone from the remainder of the MediaWiki codebase. They do not call on any other portions of MediaWiki code, and can be used in other projects without dependency issues.