Files
c0de.it/config/db.php
Lars Gebhardt-Kusche 752d33e38a
All checks were successful
Deploy / deploy (push) Successful in 15s
code it los
2026-05-15 22:27:49 +02:00

20 lines
406 B
PHP

<?php
declare(strict_types=1);
$pdo = null;
if (!defined('APP_ENV')) {
return;
}
$dbLoader = __DIR__ . '/' . APP_ENV . '/db.php';
// The prototype should run without a database. Explicit opt-in keeps the
// current concept environment usable while the data layer is still evolving.
$enableDb = getenv('APP_ENABLE_DB') === '1';
if ($enableDb && is_file($dbLoader)) {
require_once $dbLoader;
}