Part-DB-server/tests/bootstrap.php

15 lines
392 B
PHP
Raw Permalink Normal View History

2020-05-10 17:11:21 +02:00
<?php
declare(strict_types=1);
2020-05-10 17:11:21 +02:00
use Symfony\Component\Dotenv\Dotenv;
2020-05-10 17:11:21 +02:00
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');
}
2023-02-11 22:32:41 +01:00
if ($_SERVER['APP_DEBUG']) {
umask(0000);
}