<?php
declare(strict_types=1);

$adminConfig = [
    'user' => getenv('BULO_ADMIN_USER') ?: 'admin',
    'pass' => getenv('BULO_ADMIN_PASS') ?: 'admin123',
];

$localAdminConfig = __DIR__ . '/admin.local.php';
if (is_file($localAdminConfig)) {
    $loadedAdminConfig = require $localAdminConfig;
    if (is_array($loadedAdminConfig)) {
        $adminConfig = array_replace($adminConfig, $loadedAdminConfig);
    }
}

define('ADMIN_USER', (string) $adminConfig['user']);
define('ADMIN_PASS', (string) $adminConfig['pass']);