mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-27 20:00:13 +02:00
Bridge getExtraInfos (#432)
* add function getExtraInfos() to BridgeAbstract * replace call to $bridge->getName() and $bridge->getURI() by $bridge->getExtraInfos() replace call to $bridge->getName() and $bridge->getURI() by $bridge->getExtraInfos() defined by default in BridgeAbstract. So we could pass additionals ExtraInfos from custom bridges to custom formats.
This commit is contained in:
@@ -194,6 +194,13 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
public function getURI(){
|
||||
return static::URI;
|
||||
}
|
||||
|
||||
public function getExtraInfos(){
|
||||
$extraInfos = array();
|
||||
$extraInfos['name']= $this->getName();
|
||||
$extraInfos['uri']= $this->getURI();
|
||||
return $extraInfos;
|
||||
}
|
||||
|
||||
public function setCache(\CacheInterface $cache){
|
||||
$this->cache = $cache;
|
||||
|
Reference in New Issue
Block a user