aboutsummaryrefslogtreecommitdiffstats
path: root/includes/content
diff options
context:
space:
mode:
authorEbrahim Byagowi <ebrahim@gnu.org>2024-08-06 13:06:07 +0330
committerEbrahim Byagowi <ebrahim@gnu.org>2024-08-06 13:06:10 +0330
commitcfe2c7c2cf8d1ab14c3837a9b6cf9c89ff18048b (patch)
tree0b7227d4ef9bc44a9cb861b42489ecff7b569d9a /includes/content
parent88770fc9c884454e5a44828a6d5304587e20a8ff (diff)
downloadmediawikicore-cfe2c7c2cf8d1ab14c3837a9b6cf9c89ff18048b.tar.gz
mediawikicore-cfe2c7c2cf8d1ab14c3837a9b6cf9c89ff18048b.zip
Add namespace to CodeContentHandler
It adds MediaWiki\Content namespace to CodeContentHandler Change-Id: Ie02c727a66af7d0dae568eab67b242d5ffdf6431
Diffstat (limited to 'includes/content')
-rw-r--r--includes/content/CodeContentHandler.php8
-rw-r--r--includes/content/CssContentHandler.php1
-rw-r--r--includes/content/JavaScriptContentHandler.php1
-rw-r--r--includes/content/JsonContentHandler.php1
4 files changed, 7 insertions, 4 deletions
diff --git a/includes/content/CodeContentHandler.php b/includes/content/CodeContentHandler.php
index 78484c31fa8a..85d6c465016b 100644
--- a/includes/content/CodeContentHandler.php
+++ b/includes/content/CodeContentHandler.php
@@ -21,7 +21,11 @@
* @ingroup Content
*/
-use MediaWiki\Content\TextContentHandler;
+namespace MediaWiki\Content;
+
+use Content;
+use Language;
+use LogicException;
use MediaWiki\MediaWikiServices;
use MediaWiki\Title\Title;
@@ -72,3 +76,5 @@ abstract class CodeContentHandler extends TextContentHandler {
}
}
+/** @deprecated class alias since 1.43 */
+class_alias( CodeContentHandler::class, 'CodeContentHandler' );
diff --git a/includes/content/CssContentHandler.php b/includes/content/CssContentHandler.php
index f89045cfbf46..ee87f152e02f 100644
--- a/includes/content/CssContentHandler.php
+++ b/includes/content/CssContentHandler.php
@@ -23,7 +23,6 @@
namespace MediaWiki\Content;
-use CodeContentHandler;
use Content;
use MediaWiki\Content\Renderer\ContentParseParams;
use MediaWiki\Content\Transform\PreSaveTransformParams;
diff --git a/includes/content/JavaScriptContentHandler.php b/includes/content/JavaScriptContentHandler.php
index 62b96ad2c757..ba153e07123f 100644
--- a/includes/content/JavaScriptContentHandler.php
+++ b/includes/content/JavaScriptContentHandler.php
@@ -20,7 +20,6 @@
namespace MediaWiki\Content;
-use CodeContentHandler;
use Content;
use MediaWiki\Content\Renderer\ContentParseParams;
use MediaWiki\Content\Transform\PreSaveTransformParams;
diff --git a/includes/content/JsonContentHandler.php b/includes/content/JsonContentHandler.php
index dea71fe7fe9e..91338d9a985f 100644
--- a/includes/content/JsonContentHandler.php
+++ b/includes/content/JsonContentHandler.php
@@ -20,7 +20,6 @@
namespace MediaWiki\Content;
-use CodeContentHandler;
use Content;
use MediaWiki\Content\Renderer\ContentParseParams;
use MediaWiki\Content\Transform\PreSaveTransformParams;