MediaWiki master
JSONRCFeedFormatter.php
Go to the documentation of this file.
1<?php
2
8namespace MediaWiki\RCFeed;
9
11
24
26 protected function formatArray( array $packet ) {
27 return FormatJson::encode( $packet );
28 }
29}
31class_alias( JSONRCFeedFormatter::class, 'JSONRCFeedFormatter' );
JSON formatter wrapper class.
Format a recent change notification using JSON (https://www.json.org).
formatArray(array $packet)
Take the packet and return the formatted string.string
Abstract class so there can be multiple formatters outputting the same data.