Archived
1
0
Fork 0

public/index.php: pass uri to Httpcb\Bootstrap::run()

This commit is contained in:
Henrik Hautakoski 2022-07-26 19:42:03 +02:00
parent 4bf76f87f1
commit 0508e7cea7

View file

@ -5,8 +5,13 @@ defined('APP_PATH') || define('APP_PATH', realpath('..'));
require_once APP_PATH . "/app/library/Bootstrap.php"; require_once APP_PATH . "/app/library/Bootstrap.php";
require_once APP_PATH . "/app/library/Services.php"; require_once APP_PATH . "/app/library/Services.php";
$serviceContainer = new Httpcb\Services();
/** /**
* Bootstrap the application. * Bootstrap the application.
*/ */
echo (new \Httpcb\Bootstrap(new Httpcb\Services())) $bootstrap = new \Httpcb\Bootstrap($serviceContainer);
->prepare()->run();
$bootstrap
->prepare()
->run($_SERVER["REQUEST_URI"]);