brilo-example/tests/bootstrap.php

14 lines
354 B
PHP
Raw Normal View History

2024-07-29 13:39:02 +02:00
<?php
2024-08-02 14:19:16 +02:00
declare(strict_types=1);
2024-07-29 13:39:02 +02:00
use Symfony\Component\Dotenv\Dotenv;
2024-08-02 14:19:16 +02:00
require dirname(__DIR__) . '/vendor/autoload.php';
2024-07-29 13:39:02 +02:00
2024-08-02 14:19:16 +02:00
if (file_exists(dirname(__DIR__) . '/config/bootstrap.php')) {
require dirname(__DIR__) . '/config/bootstrap.php';
2024-07-29 13:39:02 +02:00
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
2024-08-02 14:19:16 +02:00
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
2024-07-29 13:39:02 +02:00
}