summaryrefslogtreecommitdiff
path: root/vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-04-17 08:51:17 +0300
committerAndrew Dolgov <[email protected]>2019-04-17 08:51:17 +0300
commitd0a9aeaf80510cdbbf4f4e461798ae9c36ace420 (patch)
tree82c461c28f7933c33f9c2614a5636c5428479f32 /vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php
parent6955b2e02d4893fd88009a8162d45b6c8b3514c6 (diff)
move readability library to af_readability/vendor out of global vendor directory
af_redditimgur: use HOOK_GET_FULL_TEXT instead of invoking readability directly
Diffstat (limited to 'vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php')
-rw-r--r--vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php b/vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php
deleted file mode 100644
index 81e9c7de6..000000000
--- a/vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace andreskrey\Readability\Nodes\DOM;
-
-use andreskrey\Readability\Nodes\NodeTrait;
-
-class DOMDocument extends \DOMDocument
-{
- use NodeTrait;
-
- public function __construct($version, $encoding)
- {
- parent::__construct($version, $encoding);
-
- $this->registerNodeClass('DOMAttr', DOMAttr::class);
- $this->registerNodeClass('DOMCdataSection', DOMCdataSection::class);
- $this->registerNodeClass('DOMCharacterData', DOMCharacterData::class);
- $this->registerNodeClass('DOMComment', DOMComment::class);
- $this->registerNodeClass('DOMDocument', self::class);
- $this->registerNodeClass('DOMDocumentFragment', DOMDocumentFragment::class);
- $this->registerNodeClass('DOMDocumentType', DOMDocumentType::class);
- $this->registerNodeClass('DOMElement', DOMElement::class);
- $this->registerNodeClass('DOMEntity', DOMEntity::class);
- $this->registerNodeClass('DOMEntityReference', DOMEntityReference::class);
- $this->registerNodeClass('DOMNode', DOMNode::class);
- $this->registerNodeClass('DOMNotation', DOMNotation::class);
- $this->registerNodeClass('DOMProcessingInstruction', DOMProcessingInstruction::class);
- $this->registerNodeClass('DOMText', DOMText::class);
- }
-}