diff options
author | Ebrahim Byagowi <ebrahim@gnu.org> | 2024-05-21 17:01:18 +0330 |
---|---|---|
committer | Ebrahim Byagowi <ebrahim@gnu.org> | 2024-05-21 17:10:20 +0330 |
commit | 656c7fac3b418bb1b5534feacf3e9063dc9cb8fb (patch) | |
tree | f82c95a84fa1d5f0909b53593a20efb844f7db49 /includes/content | |
parent | 37ae84be8b68683d15ab8ad864f9777fb3bd056b (diff) | |
download | mediawikicore-656c7fac3b418bb1b5534feacf3e9063dc9cb8fb.tar.gz mediawikicore-656c7fac3b418bb1b5534feacf3e9063dc9cb8fb.zip |
Add namespace and deprecation alias to JsonContentHandler
This patch introduces a namespace declaration for the
MediaWiki\Content to JsonContentHandler and establishes a class
alias marked as deprecated since version 1.43.
Bug: T353458
Change-Id: Ia4ba6d3eddcb7b3f3d9f41a5ff80f724dbd01b22
Diffstat (limited to 'includes/content')
-rw-r--r-- | includes/content/JsonContentHandler.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/content/JsonContentHandler.php b/includes/content/JsonContentHandler.php index fbe4abf0f888..d631aceabc29 100644 --- a/includes/content/JsonContentHandler.php +++ b/includes/content/JsonContentHandler.php @@ -18,11 +18,14 @@ * @file */ -use MediaWiki\Content\JsonContent; +namespace MediaWiki\Content; + +use CodeContentHandler; +use Content; use MediaWiki\Content\Renderer\ContentParseParams; use MediaWiki\Content\Transform\PreSaveTransformParams; -use MediaWiki\Content\ValidationParams; use MediaWiki\Parser\ParserOutput; +use StatusValue; /** * Content handler for JSON text. @@ -133,3 +136,5 @@ class JsonContentHandler extends CodeContentHandler { } } } +/** @deprecated class alias since 1.43 */ +class_alias( JsonContentHandler::class, 'JsonContentHandler' ); |