fixed controller init bug
This commit is contained in:
parent
43698c0fae
commit
8f946d9360
|
@ -2,7 +2,7 @@
|
||||||
"name": "24unix/bindapi",
|
"name": "24unix/bindapi",
|
||||||
"description": "manage Bind9 DNS server via REST API",
|
"description": "manage Bind9 DNS server via REST API",
|
||||||
"version": "2023.0.1",
|
"version": "2023.0.1",
|
||||||
"build_number": "333",
|
"build_number": "334",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Micha Espey",
|
"name": "Micha Espey",
|
||||||
|
|
|
@ -53,7 +53,7 @@ class DatabaseConnection
|
||||||
if (empty($result)) {
|
if (empty($result)) {
|
||||||
// ALTER TABLE `domains` ADD `panel_id` INT NULL AFTER `id`;
|
// ALTER TABLE `domains` ADD `panel_id` INT NULL AFTER `id`;
|
||||||
echo COLOR_RED . 'Error: ' . COLOR_DEFAULT . 'Cannot find tables.' . PHP_EOL;
|
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) {
|
} catch (PDOException $exception) {
|
||||||
echo $exception->getMessage() . PHP_EOL;
|
echo $exception->getMessage() . PHP_EOL;
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Apikey
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if ($this->passphrase) {
|
if ($this->passphrase) {
|
||||||
$configController = new ConfigController();
|
$configController = new ConfigController(quiet: true);
|
||||||
$encryptionController = new EncryptionController();
|
$encryptionController = new EncryptionController();
|
||||||
|
|
||||||
$encryptionKey = $configController->getConfig(configKey: 'encryptionKey');
|
$encryptionKey = $configController->getConfig(configKey: 'encryptionKey');
|
||||||
|
|
|
@ -24,7 +24,7 @@ class Panel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if ($this->passphrase) {
|
if ($this->passphrase) {
|
||||||
$configController = new ConfigController();
|
$configController = new ConfigController(quiet: false);
|
||||||
$encryptionController = new EncryptionController();
|
$encryptionController = new EncryptionController();
|
||||||
|
|
||||||
$encryptionKey = $configController->getConfig(configKey: 'encryptionKey');
|
$encryptionKey = $configController->getConfig(configKey: 'encryptionKey');
|
||||||
|
|
Loading…
Reference in New Issue