Addshore has uploaded a new change for review.
https://gerrit.wikimedia.org/r/281268
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/68/281268/1
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..5b7fe4c
--- /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;
+ }
+}
\ No newline at end of file
--
To view, visit https://gerrit.wikimedia.org/r/281268
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5450bda32482b5183e6d2c35e2df5c419155e2de
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits