protected function AbstractFeed::_loadExtensions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php \Zend\Feed\Writer\AbstractFeed::_loadExtensions()
Load extensions from Zend\Feed\Writer\Writer
Return value
void
Throws
Exception\RuntimeException
1 call to AbstractFeed::_loadExtensions()
- AbstractFeed::__construct in vendor/
zendframework/ zend-feed/ src/ Writer/ AbstractFeed.php - Constructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container.
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ AbstractFeed.php, line 833
Class
Namespace
Zend\Feed\WriterCode
protected function _loadExtensions() {
$all = Writer::getExtensions();
$manager = Writer::getExtensionManager();
$exts = $all['feed'];
foreach ($exts as $ext) {
if (!$manager
->has($ext)) {
throw new Exception\RuntimeException(sprintf('Unable to load extension "%s"; could not resolve to class', $ext));
}
$this->extensions[$ext] = $manager
->get($ext);
$this->extensions[$ext]
->setEncoding($this
->getEncoding());
}
}