wiki.techinc.nl/includes/utils
Timo Tijhof 268c2a5b5a GitInfo: Update use of SpecialVersion utility methods
* Avoid calling the SpecialPage code directly in e.g. an API module.

* Remove unused method "getGitCurrentBranch" on internal class
  without deprecation.

* Mark "getGitHeadSha1" as hard-deprecation first, as there are
  (unfortunately) two direct callers in Codesearch.

* Reduce indirection of non-configurable $IP and $wgBaseDirectory
  variables in favour of MW_INSTALL_PATH or GitInfo::repo().

* Move potentially duplicate brief and ingroup from file doc
  to class doc. See also
  <https://gerrit.wikimedia.org/r/q/message:ingroup+owner:Krinkle>

  Add example of LocalSettings.php use case, based on the
  original 36b1172147 (I2a76662bb4) commit message.

* Remove use of AtEase (T253461).

* Fix potential Windows bug where only backslash was replaced, since
  that is the canonical path separator, but for this use case, regular
  slash should (also) be substituted since most contexts on Windows
  nowadays support that as well, e.g. \foo/bar and \foo\bar are
  equivalent on Windows.

Change-Id: Ib2c89461edc358404544e4236a7a2dc5699b8d4e
2023-10-19 17:21:35 -07:00
..
AutoloadGenerator.php Merge "utils: Use str_starts_with/str_ends_with/str_contains" 2022-11-11 10:41:04 +00:00
BatchRowIterator.php Use more narrow IReadableDatabase in BatchRowIterator 2023-05-19 15:02:50 +02:00
BatchRowUpdate.php
BatchRowWriter.php Migrate more usages of Database::update() to UpdateQueryBuilder 2023-06-09 13:36:04 +00:00
ClassCollector.php Miscellaneous PHP version related cleanups 2022-11-21 10:11:53 +11:00
ExecutableFinder.php utils: Use str_starts_with/str_ends_with/str_contains 2022-10-04 23:09:44 +02:00
ExtensionInfo.php Follow-up c822159: Add in-code comment on alias for when it was added 2023-08-29 01:29:22 +00:00
FileContentsHasher.php
GitInfo.php GitInfo: Update use of SpecialVersion utility methods 2023-10-19 17:21:35 -07:00
MWCryptHKDF.php
MWCryptRand.php
MWFileProps.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
MWRestrictions.php Reorg: Move WebRequest to includes\Request 2023-09-11 21:44:34 +01:00
MWTimestamp.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
README
RowUpdateGenerator.php
UIDGenerator.php
UrlUtils.php Merge "Improve performance of trivial encoding/decoding regexes" 2023-10-17 20:54:11 +00:00
ZipDirectoryReader.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
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.