2024-12-28 00:39:57 +01:00
|
|
|
<?php
|
|
|
|
|
2025-01-16 21:31:32 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2024-12-28 00:39:57 +01:00
|
|
|
use Symfony\Component\Dotenv\Dotenv;
|
|
|
|
|
2025-01-16 21:31:32 +01:00
|
|
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
2024-12-28 00:39:57 +01:00
|
|
|
|
2025-01-16 21:31:32 +01:00
|
|
|
if (file_exists(dirname(__DIR__) . '/config/bootstrap.php')) {
|
|
|
|
require dirname(__DIR__) . '/config/bootstrap.php';
|
2024-12-28 00:39:57 +01:00
|
|
|
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
|
2025-01-16 21:31:32 +01:00
|
|
|
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
|
2024-12-28 00:39:57 +01:00
|
|
|
}
|