fixed controller init bug

This commit is contained in:
tracer 2024-04-17 12:55:44 +02:00
parent 43698c0fae
commit 8f946d9360
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
"name": "24unix/bindapi",
"description": "manage Bind9 DNS server via REST API",
"version": "2023.0.1",
"build_number": "333",
"build_number": "334",
"authors": [
{
"name": "Micha Espey",

View File

@ -53,7 +53,7 @@ class DatabaseConnection
if (empty($result)) {
// ALTER TABLE `domains` ADD `panel_id` INT NULL AFTER `id`;
echo COLOR_RED . 'Error: ' . COLOR_DEFAULT . 'Cannot find tables.' . PHP_EOL;
echo 'Run the migration: ' . COLOR_YELLOW . './bin/console migrations:make' . COLOR_DEFAULT . PHP_EOL;
echo 'Run the migration: ' . COLOR_YELLOW . './bin/console migrations:migrate' . COLOR_DEFAULT . PHP_EOL;
}
} catch (PDOException $exception) {
echo $exception->getMessage() . PHP_EOL;

View File

@ -22,7 +22,7 @@ class Apikey
)
{
if ($this->passphrase) {
$configController = new ConfigController();
$configController = new ConfigController(quiet: true);
$encryptionController = new EncryptionController();
$encryptionKey = $configController->getConfig(configKey: 'encryptionKey');

View File

@ -24,7 +24,7 @@ class Panel
)
{
if ($this->passphrase) {
$configController = new ConfigController();
$configController = new ConfigController(quiet: false);
$encryptionController = new EncryptionController();
$encryptionKey = $configController->getConfig(configKey: 'encryptionKey');