From cc8cf471fc73a2a9d41385f72cb82e07abc41e3c Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Fri, 12 Jul 2024 18:40:54 -0400 Subject: [PATCH] Use extension namespace for TextExtracts Change-Id: I01177e9bef0f25b6245ee3e93f605dc771642273 --- extension.json | 6 +++--- includes/ApiQueryExtracts.php | 2 +- includes/ExtractFormatter.php | 2 +- includes/Hooks.php | 2 +- includes/TextTruncator.php | 2 +- tests/phpunit/ApiQueryExtractsTest.php | 6 +++--- tests/phpunit/ExtractFormatterTest.php | 6 +++--- tests/phpunit/TextTruncatorTest.php | 6 +++--- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/extension.json b/extension.json index 3f3e55c..341a342 100644 --- a/extension.json +++ b/extension.json @@ -15,7 +15,7 @@ }, "APIPropModules": { "extracts": { - "class": "TextExtracts\\ApiQueryExtracts", + "class": "MediaWiki\\Extension\\TextExtracts\\ApiQueryExtracts", "services": [ "ConfigFactory", "MainWANObjectCache", @@ -32,7 +32,7 @@ ] }, "AutoloadNamespaces": { - "TextExtracts\\": "includes/" + "MediaWiki\\Extension\\TextExtracts\\": "includes/" }, "Hooks": { "ApiOpenSearchSuggest": "main", @@ -40,7 +40,7 @@ }, "HookHandlers": { "main": { - "class": "TextExtracts\\Hooks", + "class": "MediaWiki\\Extension\\TextExtracts\\Hooks", "services": [ "ConfigFactory" ] diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php index 1508eff..a583df0 100644 --- a/includes/ApiQueryExtracts.php +++ b/includes/ApiQueryExtracts.php @@ -1,6 +1,6 @@