a lot of enviroment stuff added

This commit is contained in:
2025-08-01 18:34:16 +02:00
parent 224f9e99f0
commit 20960419a3
10 changed files with 469 additions and 27 deletions

View File

@ -0,0 +1,11 @@
<?php
require __DIR__.'/vendor/autoload.php';
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__, '.env');
$dotenv->load();
$environment = $_ENV['APP_ENV'] ?: 'development'; // Standardmäßig Entwicklung
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__, '.env.' . $environment);
$dotenv->load();
?>