fix built files
This commit is contained in:
13
app/bootstrap.php
Normal file
13
app/bootstrap.php
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user