Compare commits
No commits in common. "30b9b5da1d833ae1838e0517a7c986d6ec0b0c39" and "776f4a8acf83f387e88be5b64b9e52f1b76801d5" have entirely different histories.
30b9b5da1d
...
776f4a8acf
|
@ -9,12 +9,12 @@ require dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|
||||||
use App\Controller\BindAPI;
|
use App\Controller\BindAPI;
|
||||||
|
|
||||||
// read config
|
$arguments = [
|
||||||
$configFile = __DIR__ ."/../config.json";
|
'argc' => $argc,
|
||||||
$configJSON = file_get_contents($configFile);
|
'argv' => $argv
|
||||||
$config = json_decode($configJSON, associative: true);
|
];
|
||||||
|
|
||||||
$app = new BindAPI(config: $config, argc: $argc, argv: $argv);
|
$app = new BindAPI(...$arguments);
|
||||||
$app->runCommand();
|
$app->runCommand();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"dbHost": "localhost",
|
|
||||||
"dbPort": 3306,
|
|
||||||
"dbDatabase": "sampledb",
|
|
||||||
"dbUser": "sampleuser",
|
|
||||||
"dbPassword": "secret"
|
|
||||||
}
|
|
Loading…
Reference in New Issue