Add bootstrap factory for framework loading
This commit is contained in:
parent
ab5fa6d69e
commit
83bc1a1661
11 changed files with 254 additions and 45 deletions
|
@ -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();
|
Loading…
Add table
Add a link
Reference in a new issue