wiki.techinc.nl/includes/utils
Aryeh Gregor 472a914c63 Refactor URL-parsing global functions to class
The new class, UrlUtils, is usable standalone or as a service. Using it
as a service will just automatically load a few settings from site
configuration.

In addition to just making our code cleaner, this will enable making
some of Setup.php's dynamic configuration more sane.

Test coverage is all lines except invalid URLs -- I couldn't find any.

Bug: T305093
Change-Id: I706ef8a50aafb518e13222719575d274c3583b90
2022-04-12 15:14:35 +03:00
..
AutoloadGenerator.php
BatchRowIterator.php Fix typos in comments (A-B) 2021-12-26 16:43:47 +05:30
BatchRowUpdate.php
BatchRowWriter.php
ClassCollector.php Fix typos in comments (C-D) 2021-12-30 18:00:02 +05:30
ExecutableFinder.php Replace some more usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 20:27:46 +00:00
FileContentsHasher.php resourceloader: Remove support for $algo param in FileContentsHasher 2021-12-03 12:12:29 +00:00
MWCryptHKDF.php Fix typos in comments (M) 2022-01-09 23:00:20 +05:30
MWCryptRand.php
MWFileProps.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
MWRestrictions.php
README
RowUpdateGenerator.php
UIDGenerator.php
UrlUtils.php Refactor URL-parsing global functions to class 2022-04-12 15:14:35 +03:00
ZipDirectoryReader.php Add explicit casts between scalar types 2022-03-01 18:19:33 +01: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.