| Current Path : /home/seto/indexator.pm/ |
| Current File : /home/seto/indexator.pm/bootstrap.php |
<?php declare(strict_types=1); require_once __DIR__ . '/vendor/autoload.php'; // Load config $config = require __DIR__ . '/config/config.php'; // Make config globally accessible to controllers via a simple container $GLOBALS['config'] = $config; // Boot database (creates file + runs schema if needed) \App\Core\Database::getInstance($config['DB_PATH']); // Start session \App\Core\Session::start();