Files
musadaq-saas/app/bootstrap/init.php
2026-05-03 17:32:57 +03:00

30 lines
762 B
PHP

<?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';