Add bootstrap factory for framework loading

This commit is contained in:
Maarten 2024-11-26 14:20:46 +01:00
parent ab5fa6d69e
commit 83bc1a1661
11 changed files with 254 additions and 45 deletions

View file

@ -1,15 +1,8 @@
<?php
use Core\Env\Env;
use Core\Routing\Router;
use Core\Bootstrap;
require '../vendor/autoload.php';
// Load routes
require '../config/routes.php';
// Load env
Env::load();
// Dispatch router
Router::dispatch();
$bootstrap = Bootstrap::createInstance();
$bootstrap->handle();