jenkins-bot has submitted this change and it was merged.
Change subject: Move EventRelayerNull class to own file
......................................................................
Move EventRelayerNull class to own file
Change-Id: I5450bda32482b5183e6d2c35e2df5c419155e2de
---
M autoload.php
M includes/libs/eventrelayer/EventRelayer.php
A includes/libs/eventrelayer/EventRelayerNull.php
3 files changed, 30 insertions(+), 9 deletions(-)
Approvals:
Florianschmidtwelzow: Looks good to me, approved
jenkins-bot: Verified
diff --git a/autoload.php b/autoload.php
index fd4f873..bc04f29 100644
--- a/autoload.php
+++ b/autoload.php
@@ -398,7 +398,7 @@
'EventRelayer' => __DIR__ .
'/includes/libs/eventrelayer/EventRelayer.php',
'EventRelayerGroup' => __DIR__ . '/includes/EventRelayerGroup.php',
'EventRelayerMCRD' => __DIR__ .
'/includes/libs/eventrelayer/EventRelayerMCRD.php',
- 'EventRelayerNull' => __DIR__ .
'/includes/libs/eventrelayer/EventRelayer.php',
+ 'EventRelayerNull' => __DIR__ .
'/includes/libs/eventrelayer/EventRelayerNull.php',
'Exif' => __DIR__ . '/includes/media/Exif.php',
'ExifBitmapHandler' => __DIR__ . '/includes/media/ExifBitmap.php',
'ExplodeIterator' => __DIR__ . '/includes/libs/ExplodeIterator.php',
diff --git a/includes/libs/eventrelayer/EventRelayer.php
b/includes/libs/eventrelayer/EventRelayer.php
index c385c38..b61cae7 100644
--- a/includes/libs/eventrelayer/EventRelayer.php
+++ b/includes/libs/eventrelayer/EventRelayer.php
@@ -55,11 +55,3 @@
abstract protected function doNotify( $channel, array $events );
}
-/**
- * No-op class for publishing messages into a PubSub system
- */
-class EventRelayerNull extends EventRelayer {
- public function doNotify( $channel, array $events ) {
- return true;
- }
-}
diff --git a/includes/libs/eventrelayer/EventRelayerNull.php
b/includes/libs/eventrelayer/EventRelayerNull.php
new file mode 100644
index 0000000..b8ec55f
--- /dev/null
+++ b/includes/libs/eventrelayer/EventRelayerNull.php
@@ -0,0 +1,29 @@
+<?php
+/**
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ * @author Aaron Schulz
+ */
+
+/**
+ * No-op class for publishing messages into a PubSub system
+ */
+class EventRelayerNull extends EventRelayer {
+ public function doNotify( $channel, array $events ) {
+ return true;
+ }
+}
--
To view, visit https://gerrit.wikimedia.org/r/281268
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5450bda32482b5183e6d2c35e2df5c419155e2de
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits