StandaloneExtensionManager.php in Zircon Profile 8.0
File
vendor/zendframework/zend-feed/src/Reader/StandaloneExtensionManager.php
View source
<?php
namespace Zend\Feed\Reader;
class StandaloneExtensionManager implements ExtensionManagerInterface {
private $extensions = [
'Atom\\Entry' => 'Zend\\Feed\\Reader\\Extension\\Atom\\Entry',
'Atom\\Feed' => 'Zend\\Feed\\Reader\\Extension\\Atom\\Feed',
'Content\\Entry' => 'Zend\\Feed\\Reader\\Extension\\Content\\Entry',
'CreativeCommons\\Entry' => 'Zend\\Feed\\Reader\\Extension\\CreativeCommons\\Entry',
'CreativeCommons\\Feed' => 'Zend\\Feed\\Reader\\Extension\\CreativeCommons\\Feed',
'DublinCore\\Entry' => 'Zend\\Feed\\Reader\\Extension\\DublinCore\\Entry',
'DublinCore\\Feed' => 'Zend\\Feed\\Reader\\Extension\\DublinCore\\Feed',
'Podcast\\Entry' => 'Zend\\Feed\\Reader\\Extension\\Podcast\\Entry',
'Podcast\\Feed' => 'Zend\\Feed\\Reader\\Extension\\Podcast\\Feed',
'Slash\\Entry' => 'Zend\\Feed\\Reader\\Extension\\Slash\\Entry',
'Syndication\\Feed' => 'Zend\\Feed\\Reader\\Extension\\Syndication\\Feed',
'Thread\\Entry' => 'Zend\\Feed\\Reader\\Extension\\Thread\\Entry',
'WellFormedWeb\\Entry' => 'Zend\\Feed\\Reader\\Extension\\WellFormedWeb\\Entry',
];
public function has($extension) {
return array_key_exists($extension, $this->extensions);
}
public function get($extension) {
$class = $this->extensions[$extension];
return new $class();
}
}