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:
Badet Aurélien 2016-11-18 15:04:06 +01:00 committed by GitHub
parent 26d05c32c4
commit 1af4c88e32

View File

@ -159,13 +159,9 @@ try {
// Data transformation
try {
$format = Format::create($format);
$format
->setItems($bridge->getItems())
->setExtraInfos(array(
'name' => $bridge->getName(),
'uri' => $bridge->getURI(),
))
->display();
$format->setItems($bridge->getItems());
$format->setExtraInfos($bridge->getExtraInfos());
$format->display();
} catch(Exception $e){
echo "The bridge has crashed. You should report this to the bridges maintainer";
}