code cleanup
This commit is contained in:
parent
3363414aa0
commit
108bafe299
|
@ -1,16 +1,14 @@
|
|||
#!/usr/bin/keyhelp-php81
|
||||
<?php
|
||||
|
||||
if (php_sapi_name() !== 'cli') {
|
||||
exit;
|
||||
}
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
require dirname(path: __DIR__) . '/vendor/autoload.php';
|
||||
|
||||
use App\Controller\BindAPI;
|
||||
|
||||
// read config
|
||||
$configFile = __DIR__ ."/../config.json";
|
||||
$configFile = dirname(path: __DIR__) ."/config.json";
|
||||
$configJSON = file_get_contents($configFile);
|
||||
$config = json_decode($configJSON, associative: true);
|
||||
|
||||
|
|
Loading…
Reference in New Issue