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;
|
||||
|
||||
// read config
|
||||
$configFile = __DIR__ ."/../config.json";
|
||||
$configJSON = file_get_contents($configFile);
|
||||
$config = json_decode($configJSON, associative: true);
|
||||
$arguments = [
|
||||
'argc' => $argc,
|
||||
'argv' => $argv
|
||||
];
|
||||
|
||||
$app = new BindAPI(config: $config, argc: $argc, argv: $argv);
|
||||
$app = new BindAPI(...$arguments);
|
||||
$app->runCommand();
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"dbHost": "localhost",
|
||||
"dbPort": 3306,
|
||||
"dbDatabase": "sampledb",
|
||||
"dbUser": "sampleuser",
|
||||
"dbPassword": "secret"
|
||||
}
|
Loading…
Reference in New Issue