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