Add ADMINS in .drone.yml database
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent 459211a5d5
commit 257ee2db5c

@ -65,4 +65,6 @@ steps:
from_secret: db_user from_secret: db_user
CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD:
from_secret: db_password from_secret: db_password
ADMINS: dorianhodin,alexislamande,baptistebaverel,johanlachenal

@ -17,7 +17,8 @@ class GatewayKeyword
$this->connection = (new ConnectClass)->connect(); $this->connection = (new ConnectClass)->connect();
}catch(PDOException $e){ }catch(PDOException $e){
throw new PDOException(); throw new PDOException();
} } }
}
public function insertKeyword(array $keyword): void public function insertKeyword(array $keyword): void
{ {

@ -41,7 +41,7 @@ $app->get('/', function (Request $request, Response $response) {
$ok = false; $ok = false;
foreach ($listGateway as $gateway){ foreach ($listGateway as $gateway){
try { try {
echo implode(",", get_class_methods((new $gateway))); echo implode("\n", get_class_methods((new $gateway)));
if (method_exists($gateway, $method)) { if (method_exists($gateway, $method)) {
$ok = true; $ok = true;
$response->getBody()->write(json_encode((new $gateway)->$method($parameters))); $response->getBody()->write(json_encode((new $gateway)->$method($parameters)));

Loading…
Cancel
Save