Commit 63057b78 authored by catch's avatar catch

Issue #1839468 by ParisLiakos: Fixed [Followup] Replace aggregator rss parsing with Zend Feed.

parent f24e7123
......@@ -19,8 +19,6 @@
use Drupal\Core\Routing\GeneratorNotInitializedException;
use Drupal\Core\SystemListingInfo;
use Drupal\Core\Template\Attribute;
use Zend\Feed\Writer\Writer;
use Zend\Feed\Reader\Reader;
/**
* @file
......@@ -3096,10 +3094,6 @@ function _drupal_bootstrap_code() {
// Load all enabled modules
Drupal::moduleHandler()->loadAll();
// Set our bridge extension manager to Zend Feed.
Reader::setExtensionManager(Drupal::service('feed.bridge.reader'));
Writer::setExtensionManager(Drupal::service('feed.bridge.writer'));
// Make sure all stream wrappers are registered.
file_get_stream_wrappers();
......
......@@ -32,6 +32,8 @@ class DefaultParser implements ParserInterface {
* {@inheritdoc}
*/
public function parse(Feed $feed) {
// Set our bridge extension manager to Zend Feed.
Reader::setExtensionManager(\Drupal::service('feed.bridge.reader'));
try {
$channel = Reader::importString($feed->source_string);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment