2020-03-10 19:04:22 +00:00
|
|
|
<?php
|
|
|
|
|
2021-10-10 09:26:18 +01:00
|
|
|
declare(strict_types = 1);
|
|
|
|
|
2020-03-10 19:04:22 +00:00
|
|
|
use Symfony\Component\Dotenv\Dotenv;
|
|
|
|
|
2021-10-10 09:26:18 +01:00
|
|
|
require \dirname(__DIR__) . '/vendor/autoload.php';
|
2020-03-10 19:04:22 +00:00
|
|
|
|
2021-10-10 09:26:18 +01:00
|
|
|
if (file_exists(\dirname(__DIR__) . '/config/bootstrap.php')) {
|
|
|
|
require \dirname(__DIR__) . '/config/bootstrap.php';
|
2020-05-10 21:43:15 +01:00
|
|
|
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
|
2021-10-10 09:26:18 +01:00
|
|
|
(new Dotenv())->bootEnv(\dirname(__DIR__) . '/.env');
|
2020-03-10 19:04:22 +00:00
|
|
|
}
|