Add namespace and deprecation alias to JavaScriptContent
commitccde5085deb75d2e885f69d327ec53dc284551e7
authorEbrahim Byagowi <ebrahim@gnu.org>
Fri, 17 May 2024 10:11:24 +0000 (17 13:41 +0330)
committerEbrahim Byagowi <ebrahim@gnu.org>
Fri, 17 May 2024 10:21:18 +0000 (17 13:51 +0330)
treedb14f0f0778be9ac539153c80933888f65917df6
parent86593606ab4f82682e67038f9860f0c936e537bc
Add namespace and deprecation alias to JavaScriptContent

This patch introduces a namespace declaration for the
MediaWiki\Content to JavaScriptContent and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: I87c17327911e28a461feaf2ff46242454cff257a
14 files changed:
autoload.php
includes/Output/OutputPage.php
includes/content/JavaScriptContent.php
includes/content/JavaScriptContentHandler.php
tests/phpunit/includes/ResourceLoader/WikiModuleTest.php
tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php
tests/phpunit/includes/api/ApiEditPageTest.php
tests/phpunit/includes/content/FallbackContentTest.php
tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
tests/phpunit/includes/content/JavaScriptContentTest.php
tests/phpunit/includes/content/TextContentTest.php
tests/phpunit/includes/content/WikitextContentTest.php
tests/phpunit/integration/includes/Rest/Handler/ParsoidHandlerTest.php
tests/phpunit/integration/includes/Rest/Handler/ParsoidOutputAccessTest.php