Website/tests/bootstrap.php
Snoweuph ee8012c4e0
All checks were successful
Quality Check / QS Backend (push) Successful in 16s
Quality Check / QS Frontend (push) Successful in 34s
NOTICKET: Refactor Project Layout
2024-07-30 05:59:42 +02:00

15 lines
380 B
PHP

<?php
/** @noinspection ALL */
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');
}