Move EchoPush namespace to MediaWiki\Extension\Notifications\Push

Bug: T305667
Change-Id: I5a7846a0fc383bddbf6511d6ba73c8be7d7760c7
This commit is contained in:
Reedy 2022-04-08 01:38:27 +01:00
parent 3555ea1089
commit c76761eff3
20 changed files with 38 additions and 35 deletions

View file

@ -1,7 +1,7 @@
<?php
use EchoPush\NotificationServiceClient;
use EchoPush\SubscriptionManager;
use MediaWiki\Extension\Notifications\Push\NotificationServiceClient;
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
use MediaWiki\Storage\NameTableStore;

View file

@ -49,7 +49,7 @@
"JobClasses": {
"EchoNotificationJob": "EchoNotificationJob",
"EchoNotificationDeleteJob": "EchoNotificationDeleteJob",
"EchoPushNotificationRequest": "EchoPush\\NotificationRequestJob"
"EchoPushNotificationRequest": "MediaWiki\\Extension\\Notifications\\Push\\NotificationRequestJob"
},
"SpecialPages": {
"Notifications": "SpecialNotifications",
@ -1157,10 +1157,11 @@
"SpecialNotificationsFormatter": "includes/formatters/SpecialNotificationsFormatter.php",
"SpecialNotificationsMarkRead": "includes/special/SpecialNotificationsMarkRead.php",
"UpdateEchoSchemaForSuppression": "maintenance/updateEchoSchemaForSuppression.php",
"EchoUpdatePerUserBlacklist": "maintenance/updatePerUserBlacklist.php"
"EchoUpdatePerUserBlacklist": "maintenance/updatePerUserBlacklist.php",
"EchoPush\\PushNotifier": "includes/Push/PushNotifier.php",
"MediaWiki\\Extension\\Notifications\\Push\\PushNotifier": "includes/Push/PushNotifier.php"
},
"AutoloadNamespaces": {
"EchoPush\\": "includes/Push/",
"EchoPush\\Api\\": "includes/api/Push/",
"MediaWiki\\Extension\\Notifications\\": "includes/"
},

View file

@ -1,7 +1,7 @@
<?php
use EchoPush\NotificationServiceClient;
use EchoPush\SubscriptionManager;
use MediaWiki\Extension\Notifications\Push\NotificationServiceClient;
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
use MediaWiki\MediaWikiServices;
class EchoServices {

View file

@ -1,6 +1,6 @@
<?php
namespace EchoPush;
namespace MediaWiki\Extension\Notifications\Push;
use EchoServices;
use Job;

View file

@ -1,6 +1,6 @@
<?php
namespace EchoPush;
namespace MediaWiki\Extension\Notifications\Push;
use MediaWiki\Http\HttpRequestFactory;
use MWHttpRequest;

View file

@ -1,6 +1,6 @@
<?php
namespace EchoPush;
namespace MediaWiki\Extension\Notifications\Push;
use EchoEvent;
use EchoServices;
@ -43,3 +43,5 @@ class PushNotifier {
}
}
class_alias( PushNotifier::class, 'EchoPush\\PushNotifier' );

View file

@ -1,6 +1,6 @@
<?php
namespace EchoPush;
namespace MediaWiki\Extension\Notifications\Push;
use Wikimedia\Timestamp\ConvertibleTimestamp;

View file

@ -1,6 +1,6 @@
<?php
namespace EchoPush;
namespace MediaWiki\Extension\Notifications\Push;
use EchoAbstractMapper;
use MediaWiki\Storage\NameTableStore;

View file

@ -1,6 +1,6 @@
<?php
namespace EchoPush;
namespace MediaWiki\Extension\Notifications\Push;
use CentralIdLookup;
use MediaWiki\MediaWikiServices;

View file

@ -4,9 +4,9 @@ namespace EchoPush\Api;
use ApiBase;
use ApiMain;
use EchoPush\SubscriptionManager;
use EchoPush\Utils;
use EchoServices;
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
use MediaWiki\Extension\Notifications\Push\Utils;
use Wikimedia\ParamValidator\ParamValidator;
class ApiEchoPushSubscriptionsCreate extends ApiBase {

View file

@ -5,9 +5,9 @@ namespace EchoPush\Api;
use ApiBase;
use ApiMain;
use ApiUsageException;
use EchoPush\SubscriptionManager;
use EchoPush\Utils;
use EchoServices;
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
use MediaWiki\Extension\Notifications\Push\Utils;
use Wikimedia\ParamValidator\ParamValidator;
class ApiEchoPushSubscriptionsDelete extends ApiBase {

View file

@ -1,6 +1,6 @@
<?php
use EchoPush\Utils;
use MediaWiki\Extension\Notifications\Push\Utils;
/**
* @group medium

View file

@ -1,6 +1,6 @@
<?php
use EchoPush\Utils;
use MediaWiki\Extension\Notifications\Push\Utils;
/**
* @group medium

View file

@ -1,7 +1,7 @@
<?php
use EchoPush\NotificationServiceClient;
use EchoPush\SubscriptionManager;
use MediaWiki\Extension\Notifications\Push\NotificationServiceClient;
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
use MediaWiki\MediaWikiServices;
/** @covers EchoServices */

View file

@ -2,7 +2,7 @@
use Wikimedia\TestingAccessWrapper;
/** @covers \EchoPush\NotificationServiceClient */
/** @covers \MediaWiki\Extension\Notifications\Push\NotificationServiceClient */
class NotificationServiceClientTest extends MediaWikiIntegrationTestCase {
use MockHttpTrait;

View file

@ -1,11 +1,11 @@
<?php
use EchoPush\NotificationRequestJob;
use EchoPush\PushNotifier;
use EchoPush\Utils;
use MediaWiki\Extension\Notifications\Push\NotificationRequestJob;
use MediaWiki\Extension\Notifications\Push\PushNotifier;
use MediaWiki\Extension\Notifications\Push\Utils;
use Wikimedia\TestingAccessWrapper;
/** @covers \EchoPush\PushNotifier */
/** @covers \MediaWiki\Extension\Notifications\Push\PushNotifier */
class PushNotifierTest extends MediaWikiIntegrationTestCase {
public function testCreateJob(): void {

View file

@ -1,11 +1,11 @@
<?php
use EchoPush\Utils;
use MediaWiki\Extension\Notifications\Push\Utils;
use Wikimedia\TestingAccessWrapper;
/**
* @group Database
* @covers \EchoPush\SubscriptionManager
* @covers \MediaWiki\Extension\Notifications\Push\SubscriptionManager
*/
class SubscriptionManagerTest extends MediaWikiIntegrationTestCase {

View file

@ -1,8 +1,8 @@
<?php
use EchoPush\Utils;
use MediaWiki\Extension\Notifications\Push\Utils;
/** @covers EchoPush\Utils */
/** @covers \MediaWiki\Extension\Notifications\Push\Utils */
class UtilsTest extends MediaWikiIntegrationTestCase {
public function testGetLoggedInPushId(): void {

View file

@ -1,9 +1,9 @@
<?php
use EchoPush\NotificationServiceClient;
use EchoPush\Subscription;
use MediaWiki\Extension\Notifications\Push\NotificationServiceClient;
use MediaWiki\Extension\Notifications\Push\Subscription;
/** @covers \EchoPush\NotificationServiceClient */
/** @covers \MediaWiki\Extension\Notifications\Push\NotificationServiceClient */
class NotificationServiceClientUnitTest extends MediaWikiUnitTestCase {
/**

View file

@ -1,9 +1,9 @@
<?php
use EchoPush\Subscription;
use MediaWiki\Extension\Notifications\Push\Subscription;
use Wikimedia\Timestamp\ConvertibleTimestamp;
/** @covers \EchoPush\Subscription */
/** @covers \MediaWiki\Extension\Notifications\Push\Subscription */
class SubscriptionTest extends MediaWikiUnitTestCase {
public function testNewFromRow(): void {