mirror of
https://codeberg.org/danielsiepmann/news-reader-php.git
synced 2024-12-22 22:06:09 +01:00
11 lines
320 B
PHP
11 lines
320 B
PHP
<?php
|
|
|
|
use Symfony\Component\Dotenv\Dotenv;
|
|
|
|
require dirname(__DIR__).'/vendor/autoload.php';
|
|
|
|
if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
|
|
require dirname(__DIR__).'/config/bootstrap.php';
|
|
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
|
|
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
|
|
}
|