TEMP : Stub to test the json encode
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent 08f4003ea1
commit a627f7eff5

@ -39,8 +39,14 @@ try{
$response->getBody()->write(print_r((new $gateway)->$method($parameters))); $response->getBody()->write(print_r((new $gateway)->$method($parameters)));
} }
} }
$temp = array('response' => "Rien", 'test' => "Test Ici"); $temp = array(0 => array("id" => "1",
$response->getBody()->write(implode($temp)); "0" => "1",
"title" => "Votre avis nous intéresse !",
"1" => "Votre avis nous intéresse !",
"description" => "Ce formulaire vous permet de candidater à une potentielle interview si votre profil nous intéresse.",
"2" => "Ce formulaire vous permet de candidater à une potentielle interview si votre profil nous intéresse."
));
$response->getBody()->write(json_encode($temp));
return $response->withHeader('Content-type', 'application/json'); return $response->withHeader('Content-type', 'application/json');
}); });
}catch (TypeError $t){ }catch (TypeError $t){

Loading…
Cancel
Save