Commit graph

9 commits

Author SHA1 Message Date
James D. Forrester
8f6939f594 docs: Adjust all @deprecated tags to use 'since…' for consistency
This skips ones that have been marked but were never in the then
RELEASE-NOTES and later HISTORY file, and so weren't properly
deprecated ever.

Change-Id: I31df2d7e83182b5bf9524237fc4a1862356bfd5a
2024-05-01 07:41:18 +01:00
Derick Alangi
b18045c81a Deprecate never-used ConfigRepository service
Looks like this class and its corresponding services have been
used since inception. Let's get rid of it.

Change-Id: If427fb705bb86f019d24b6073f44af811dc1f13f
2024-01-24 17:52:19 -05:00
James D. Forrester
c1599c91b3 Namespace Config-related classes under \MediaWiki\Config
Bug: T166010
Change-Id: I4066885a7ea071d22497abcdb3f95e73e154d08c
2023-09-21 05:41:58 +00:00
Derick Alangi
d6a525bde1
config: Remove unused ConfigRepository::getValueOf() method
Introduced in I9419508eaa85ffc55520db7f33b3e9530fc99f00 but
was never used anywhere.

Change-Id: I4d5c059679313c37dd03eff8a77d6f77fbb7e33a
2023-08-08 21:42:29 +01:00
Daimona Eaytoy
e7ee0bc0f5 Better docs to make phan happy
Change-Id: I8a9a6330cf1f889cbb77dfc28c93774204767323
2019-09-07 16:47:18 +00:00
Florian
e2273bcd86 Remove useless use of current and end
The ConfigRepository is not an Interable (any more), so these functions
don't have any useable effect.

Bug: T221045
Change-Id: I6e5bfd9d922d2838c65d52815590dcad1fe6d284
2019-05-18 18:51:44 +00:00
Thiemo Kreuz
2540c29b20 Use the ?? feature instead of isset() where it makes sense
Change-Id: I3a54f36b33d99ef3ff4c63e32e7dfcbcfc296135
2019-03-24 22:40:49 +01:00
Lucas Werkmeister
7585985a46 Fully extract services framework as a library
This code doesn’t use any MediaWiki-specific code, so rename
MediaWiki\Services to Wikimedia\Services and move it below libs/. (Of
course, this does not apply to the MediaWikiServices subclass.)

Class aliases are added to retain backwards compatibity for now.

Bug: T211608
Change-Id: Ic14ea28ef21c359695b309d4293dbaaf5deedc09
2019-01-16 17:31:05 +01:00
Florian Schmidt
418cb8d9b3 config: Add new ConfigRepository
This, for now, has the focus for holding metadata of each
configuration option inside of MediaWiki (both extensions and core).
It's very close to the Config interface and friends, and uses these
implementations to retrieve the actual value of the
configuration option.

The goal with this change is to implement a basic architecture to
allow to display the values of the curent configuration of the MediaWiki
installation on-wiki (e.g. on a special page). It also provides a
central point, where the currently known options can be fetched
from.

The long-term goal, of course, would be to get a web interface to really
configure the MediaWiki installation. But, this is more like a dream,
then a plan (from the point of view of this commit).

Next steps would be:
 * Enable ExtensionRegistry to "register" the configuration options of
   extensions, so they're available in the repo (done).
 * Find a good way to get mediawiki/core configurations into this repo
 * Work out an overall architecture to display the different possible
   values. (I think about something like different formatters for types).

Change-Id: I9419508eaa85ffc55520db7f33b3e9530fc99f00
2018-07-19 14:21:56 +00:00