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