Website/app/tests/bootstrap.php

16 lines
380 B
PHP
Raw Normal View History

2024-02-04 04:39:13 +00:00
<?php
2024-07-12 22:56:04 +00:00
/** @noinspection ALL */
2024-02-04 04:39:13 +00:00
declare(strict_types=1);
use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__) . '/vendor/autoload.php';
if (file_exists(dirname(__DIR__) . '/config/bootstrap.php')) {
require dirname(__DIR__) . '/config/bootstrap.php';
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
}