Decouple from MW-specific ObjectCache class and stateful servie wiring that lies behind it, which currently make it impossible to test FileModule in a pure unit test. This is also in prep for resourceloader being standalone. Remove fallback to HashBagOStuff, previously used if a server doesn't have php-apcu. This fallback didn't seem useful as it would only retain fairly large amounts if data in memory, that is actually not re-used as we generally don't hash the same file multiple times, or at least not in significant quantities that it outweighs the out-of-the-box risk in memory use for large RL startup responses where many 10,000s of files get hashed. Bug: T32956 Change-Id: I809951d34feb2dbd01b7ae0f4bd98dac7c3f6fe2 |
||
|---|---|---|
| .. | ||
| AutoloadGenerator.php | ||
| BatchRowIterator.php | ||
| BatchRowUpdate.php | ||
| BatchRowWriter.php | ||
| ClassCollector.php | ||
| ExecutableFinder.php | ||
| FileContentsHasher.php | ||
| MWCryptHKDF.php | ||
| MWCryptRand.php | ||
| MWFileProps.php | ||
| MWRestrictions.php | ||
| README | ||
| RowUpdateGenerator.php | ||
| UIDGenerator.php | ||
| ZipDirectoryReader.php | ||
| ZipDirectoryReaderError.php | ||
The classes in this directory are general utilities for use by any part of MediaWiki. They do not favour any particular user interface and are not constrained to serve any particular feature. This is similar to includes/libs, except that some dependency on the MediaWiki framework (such as the use of MWException, Status or wfDebug()) disqualifies them from use outside of MediaWiki without modification. Utilities should not use global configuration variables, rather they should rely on the caller to configure their behaviour.