protected function AbstractFeed::loadExtensions in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php \Zend\Feed\Reader\AbstractFeed::loadExtensions()
- 8 vendor/zendframework/zend-feed/src/Reader/Feed/AbstractFeed.php \Zend\Feed\Reader\Feed\AbstractFeed::loadExtensions()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/AbstractFeed.php \Zend\Feed\Reader\Feed\AbstractFeed::loadExtensions()
1 call to AbstractFeed::loadExtensions()
- AbstractFeed::__construct in vendor/
zendframework/ zend-feed/ src/ Reader/ Feed/ AbstractFeed.php - Constructor
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Feed/ AbstractFeed.php, line 276
Class
Namespace
Zend\Feed\Reader\FeedCode
protected function loadExtensions() {
$all = Reader\Reader::getExtensions();
$manager = Reader\Reader::getExtensionManager();
$feed = $all['feed'];
foreach ($feed as $extension) {
if (in_array($extension, $all['core'])) {
continue;
}
if (!$manager
->has($extension)) {
throw new Exception\RuntimeException(sprintf('Unable to load extension "%s"; cannot find class', $extension));
}
$plugin = $manager
->get($extension);
$plugin
->setDomDocument($this
->getDomDocument());
$plugin
->setType($this->data['type']);
$plugin
->setXpath($this->xpath);
$this->extensions[$extension] = $plugin;
}
}