mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 00:40:12 +00:00
Remove SerialHandler interface in favor of default methods on ExtensionTag
Change-Id: I245c4b9393720982654d5f4e944329c9d764e04e
This commit is contained in:
parent
7e444d6364
commit
7b6839ac59
|
@ -9,7 +9,6 @@ use DOMNode;
|
|||
use Exception;
|
||||
use Parsoid\Config\ParsoidExtensionAPI;
|
||||
use Parsoid\Ext\ExtensionTag;
|
||||
use Parsoid\Ext\SerialHandler;
|
||||
use Parsoid\Html2Wt\SerializerState;
|
||||
use Parsoid\Utils\ContentUtils;
|
||||
use Parsoid\Utils\DOMCompat;
|
||||
|
@ -20,7 +19,7 @@ use Parsoid\Utils\WTUtils;
|
|||
/**
|
||||
* Simple token transform version of the Ref extension tag.
|
||||
*/
|
||||
class Ref extends ExtensionTag implements SerialHandler {
|
||||
class Ref extends ExtensionTag {
|
||||
|
||||
/** @inheritDoc */
|
||||
public function toDOM( ParsoidExtensionAPI $extApi, string $txt, array $extExtArgs ): DOMDocument {
|
||||
|
|
|
@ -9,7 +9,6 @@ use DOMNode;
|
|||
use Parsoid\Config\Env;
|
||||
use Parsoid\Config\ParsoidExtensionAPI;
|
||||
use Parsoid\Ext\ExtensionTag;
|
||||
use Parsoid\Ext\SerialHandler;
|
||||
use Parsoid\Html2Wt\SerializerState;
|
||||
use Parsoid\Tokens\DomSourceRange;
|
||||
use Parsoid\Utils\ContentUtils;
|
||||
|
@ -21,7 +20,7 @@ use Parsoid\Utils\TokenUtils;
|
|||
use Parsoid\Utils\WTUtils;
|
||||
use Wikimedia\Assert\Assert;
|
||||
|
||||
class References extends ExtensionTag implements SerialHandler {
|
||||
class References extends ExtensionTag {
|
||||
/**
|
||||
* @param DOMNode $node
|
||||
* @return bool
|
||||
|
|
Loading…
Reference in a new issue