brilo-example/tests/bootstrap.php

14 lines
354 B
PHP
Raw Permalink Normal View History

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