2020-05-17 19:29:06 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
|
2020-05-17 22:30:22 +02:00
|
|
|
const ROOT = __DIR__;
|
|
|
|
|
|
|
|
$dotenv = Dotenv\Dotenv::createImmutable(ROOT);
|
2020-05-17 19:29:06 +02:00
|
|
|
$dotenv->load();
|
|
|
|
|
|
|
|
if (!empty($_ENV['DEV'])) {
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
|
|
|
|
ini_set('display_errors', '1');
|
|
|
|
} else {
|
|
|
|
ini_set('display_errors', '0');
|
|
|
|
}
|