added missing named parameters, added strict_types
Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
parent
383dc29ba5
commit
fe1c698935
@ -1,13 +1,14 @@
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
namespace App\Controller;
|
||||
|
||||
// 61eec33c8829a.91a1d27d70ba26710092381a073d9e546597dff6033de272
|
||||
error_reporting(error_level: E_ALL);
|
||||
|
||||
require dirname(path: __DIR__) . '/vendor/autoload.php';
|
||||
|
||||
// read config
|
||||
$configFile = dirname(path: __DIR__) . "/config.json";
|
||||
$configJSON = file_get_contents($configFile);
|
||||
$config = json_decode($configJSON, associative: true);
|
||||
$configJSON = file_get_contents(filename: $configFile);
|
||||
$config = json_decode(json: $configJSON, associative: true);
|
||||
|
||||
|
||||
// TODO only valid clients?
|
||||
|
Loading…
Reference in New Issue
Block a user