From 2aaefbfa54447c37a74aaf126f864fac629e9bd5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Jun 2018 14:58:09 +0300 Subject: update autoloader to consider namespaces for third party libraries: placed and loaded from vendor/namespace/classpath.php update readability to a newer implementation based on Readability.js (https://github.com/andreskrey/readability.php) add vendor/Psr/Log interface required for the above --- .../Readability/Nodes/DOM/DOMDocument.php | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php (limited to 'vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php') diff --git a/vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php b/vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php new file mode 100644 index 000000000..81e9c7de6 --- /dev/null +++ b/vendor/andreskrey/Readability/Nodes/DOM/DOMDocument.php @@ -0,0 +1,30 @@ +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); + } +} -- cgit v1.2.3