fix built files

This commit is contained in:
dwindown
2025-08-30 14:27:01 +07:00
parent b8ce5589ac
commit 7417021bb0
3 changed files with 125560 additions and 0 deletions

13
app/bootstrap.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
// app/bootstrap.php — env + errors
$cfg = require __DIR__.'/../config/env.php';
date_default_timezone_set('UTC');
error_reporting(E_ALL);
ini_set('display_errors', $cfg['debug'] ? '1' : '0');
function cfg(string $key, $default=null) {
static $cfg;
if (!$cfg) $cfg = require __DIR__.'/../config/env.php';
return $cfg[$key] ?? $default;
}