mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 09:10:12 +00:00
Move EchoPush namespace to MediaWiki\Extension\Notifications\Push
Bug: T305667 Change-Id: I5a7846a0fc383bddbf6511d6ba73c8be7d7760c7
This commit is contained in:
parent
3555ea1089
commit
c76761eff3
|
@ -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;
|
||||
|
|
|
@ -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/"
|
||||
},
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace EchoPush;
|
||||
namespace MediaWiki\Extension\Notifications\Push;
|
||||
|
||||
use EchoServices;
|
||||
use Job;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace EchoPush;
|
||||
namespace MediaWiki\Extension\Notifications\Push;
|
||||
|
||||
use MediaWiki\Http\HttpRequestFactory;
|
||||
use MWHttpRequest;
|
||||
|
|
|
@ -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' );
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace EchoPush;
|
||||
namespace MediaWiki\Extension\Notifications\Push;
|
||||
|
||||
use Wikimedia\Timestamp\ConvertibleTimestamp;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace EchoPush;
|
||||
namespace MediaWiki\Extension\Notifications\Push;
|
||||
|
||||
use EchoAbstractMapper;
|
||||
use MediaWiki\Storage\NameTableStore;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace EchoPush;
|
||||
namespace MediaWiki\Extension\Notifications\Push;
|
||||
|
||||
use CentralIdLookup;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use EchoPush\Utils;
|
||||
use MediaWiki\Extension\Notifications\Push\Utils;
|
||||
|
||||
/**
|
||||
* @group medium
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use EchoPush\Utils;
|
||||
use MediaWiki\Extension\Notifications\Push\Utils;
|
||||
|
||||
/**
|
||||
* @group medium
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
/** @covers \EchoPush\NotificationServiceClient */
|
||||
/** @covers \MediaWiki\Extension\Notifications\Push\NotificationServiceClient */
|
||||
class NotificationServiceClientTest extends MediaWikiIntegrationTestCase {
|
||||
use MockHttpTrait;
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue