This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once dirname(__DIR__) . '/domainbase.php';
|
||||
$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);
|
||||
@@ -10,4 +20,3 @@ if (!defined('APP_DOMAIN_NAME')) {
|
||||
if (!defined('APP_STAGE_PREFIX')) {
|
||||
define('APP_STAGE_PREFIX', 'staging');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user