diff --git a/composer.json b/composer.json index d319faf..12dd252 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/Controller/DatabaseConnection.php b/src/Controller/DatabaseConnection.php index 931c8ae..ba4f3a4 100644 --- a/src/Controller/DatabaseConnection.php +++ b/src/Controller/DatabaseConnection.php @@ -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; diff --git a/src/Entity/Apikey.php b/src/Entity/Apikey.php index 1e0588d..08fd863 100644 --- a/src/Entity/Apikey.php +++ b/src/Entity/Apikey.php @@ -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'); diff --git a/src/Entity/Panel.php b/src/Entity/Panel.php index 1de5c22..4c10a10 100644 --- a/src/Entity/Panel.php +++ b/src/Entity/Panel.php @@ -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');