2022-03-03 10:53:48 -05:00
|
|
|
<?php declare(strict_types=1);
|
2022-02-18 12:04:13 -05:00
|
|
|
|
|
|
|
use Symfony\Component\Dotenv\Dotenv;
|
|
|
|
|
2022-03-03 10:53:48 -05:00
|
|
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
2022-02-18 12:04:13 -05:00
|
|
|
|
2022-03-03 10:53:48 -05:00
|
|
|
if (file_exists(dirname(__DIR__) . '/config/bootstrap.php')) {
|
|
|
|
require dirname(__DIR__) . '/config/bootstrap.php';
|
2022-02-18 12:04:13 -05:00
|
|
|
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
|
2022-03-03 10:53:48 -05:00
|
|
|
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
|
2022-02-18 12:04:13 -05:00
|
|
|
}
|