aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RELEASE-NOTES-1.431
-rw-r--r--autoload.php1
-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
6 files changed, 9 insertions, 4 deletions
diff --git a/RELEASE-NOTES-1.43 b/RELEASE-NOTES-1.43
index c3b82ae026c5..552972a62f82 100644
--- a/RELEASE-NOTES-1.43
+++ b/RELEASE-NOTES-1.43
@@ -339,6 +339,7 @@ because of Phabricator reports.
not yet (XYZ% done, up from 69% in MediaWiki 1.42.0). The following have newly
been moved:
- MediaWiki\Content:
+ - CodeContentHandler
- CssContent
- CssContentHandler
- FallbackContent
diff --git a/autoload.php b/autoload.php
index 8e952b44044e..4bf02a9813f4 100644
--- a/autoload.php
+++ b/autoload.php
@@ -999,6 +999,7 @@ $wgAutoloadLocalClasses = [
'MediaWiki\\Config\\MutableConfig' => __DIR__ . '/includes/config/MutableConfig.php',
'MediaWiki\\Config\\ServiceOptions' => __DIR__ . '/includes/config/ServiceOptions.php',
'MediaWiki\\Config\\SiteConfiguration' => __DIR__ . '/includes/config/SiteConfiguration.php',
+ 'MediaWiki\\Content\\CodeContentHandler' => __DIR__ . '/includes/content/CodeContentHandler.php',
'MediaWiki\\Content\\ContentHandlerFactory' => __DIR__ . '/includes/content/ContentHandlerFactory.php',
'MediaWiki\\Content\\CssContent' => __DIR__ . '/includes/content/CssContent.php',
'MediaWiki\\Content\\CssContentHandler' => __DIR__ . '/includes/content/CssContentHandler.php',
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;