enable proxy usage for individual bridge

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-07-03 23:11:28 +02:00
parent b43e8ef689
commit 3dd63ab6fd
3 changed files with 24 additions and 7 deletions

View file

@ -100,7 +100,7 @@ try{
// whitelist control
if(!Bridge::isWhitelisted($whitelist_selection, $bridge)) {
throw new \HttpException('This bridge is not whitelisted', 401);
die;
die;
}
$cache = Cache::create('FileCache');
@ -111,6 +111,10 @@ try{
} else {
$bridge->setCache($cache); // just add disable cache to your query to disable caching
}
if(isset($_REQUEST['_p'])){
$bridge->useProxy=true;
}
$bridge->setDatas($_REQUEST);
$bridge->loadMetadatas();
$bridge->setDatas($_REQUEST);
// Data transformation