<?php
declare(strict_types=1);

$domainBaseCandidates = [
    __DIR__ . '/domainbase.php',
    dirname(__DIR__) . '/domainbase.php',
];

foreach ($domainBaseCandidates as $candidate) {
    if (is_file($candidate)) {
        require_once $candidate;
        break;
    }
}

if (!defined('APP_DOMAIN_NAME')) {
    define('APP_DOMAIN_NAME', APP_DOMAIN_BASE);
}
