Update: 2026-05-03 17:32:57
This commit is contained in:
29
app/bootstrap/init.php
Normal file
29
app/bootstrap/init.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Simple Bootstrap Initialization
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
// 1. Constants
|
||||
define('ROOT_PATH', dirname(__DIR__, 2));
|
||||
define('APP_PATH', ROOT_PATH . '/app');
|
||||
define('STORAGE_PATH', ROOT_PATH . '/storage');
|
||||
|
||||
// 2. Load Environment Variables
|
||||
require_once APP_PATH . '/bootstrap/env.php';
|
||||
|
||||
// 3. Common Helpers
|
||||
require_once APP_PATH . '/helpers/helpers.php';
|
||||
|
||||
// 4. Core Classes (Manual autoload for simplicity)
|
||||
require_once APP_PATH . '/core/Database.php';
|
||||
require_once APP_PATH . '/core/JWT.php';
|
||||
require_once APP_PATH . '/core/Security.php';
|
||||
require_once APP_PATH . '/core/Validator.php';
|
||||
|
||||
// 5. Response Utility
|
||||
require_once APP_PATH . '/bootstrap/response.php';
|
||||
|
||||
// 6. Auth Session/State (Simple)
|
||||
require_once APP_PATH . '/bootstrap/auth.php';
|
||||
Reference in New Issue
Block a user