Remove SerialHandler interface in favor of default methods on ExtensionTag

Change-Id: I245c4b9393720982654d5f4e944329c9d764e04e
This commit is contained in:
C. Scott Ananian 2019-07-11 13:22:29 -04:00 committed by Subramanya Sastry
parent 7e444d6364
commit 7b6839ac59
2 changed files with 2 additions and 4 deletions

View file

@ -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 {

View file

@ -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