jenkins-bot has submitted this change and it was merged.

Change subject: Support the ApiSerializable interface
......................................................................


Support the ApiSerializable interface

Adds the 'implements ApiSerializable' to classes that have the
appropriate methods.  Do not implement until I7b37295e88 is merged
to core which contains this new interface.

Bug: T90745
Change-Id: I738772c946c348f4e971998bd94a35ffad838d8a
---
M includes/Model/Anchor.php
M includes/Model/UUID.php
2 files changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  Matthias Mullie: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/includes/Model/Anchor.php b/includes/Model/Anchor.php
index c4f697d..d64e26d 100644
--- a/includes/Model/Anchor.php
+++ b/includes/Model/Anchor.php
@@ -2,6 +2,7 @@
 
 namespace Flow\Model;
 
+use ApiSerializable;
 use Html;
 use Message;
 use RawMessage;
@@ -11,7 +12,7 @@
  * Represents a mutable anchor as a Message instance along with
  * a title, query parameters, and a fragment.
  */
-class Anchor {
+class Anchor implements ApiSerializable {
        /**
         * Message used for the text of the anchor
         *
diff --git a/includes/Model/UUID.php b/includes/Model/UUID.php
index 33539d2..a9f10b1 100644
--- a/includes/Model/UUID.php
+++ b/includes/Model/UUID.php
@@ -2,6 +2,7 @@
 
 namespace Flow\Model;
 
+use ApiSerializable;
 use Blob;
 use Flow\Data\ObjectManager;
 use Flow\Exception\FlowException;
@@ -17,7 +18,7 @@
  *
  * @todo probably should be UID since these dont match the UUID standard
  */
-class UUID {
+class UUID implements ApiSerializable {
        /**
         * @var UUID[][][]
         */

-- 
To view, visit https://gerrit.wikimedia.org/r/193011
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I738772c946c348f4e971998bd94a35ffad838d8a
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Matthias Mullie <mmul...@wikimedia.org>
Gerrit-Reviewer: SG <shah...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to