From 0508e7cea70d0073d683acef5255415480a01279 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 26 Jul 2022 19:42:03 +0200 Subject: [PATCH] public/index.php: pass uri to Httpcb\Bootstrap::run() --- public/index.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index cb7b01a..bbac697 100644 --- a/public/index.php +++ b/public/index.php @@ -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/Services.php"; +$serviceContainer = new Httpcb\Services(); + /** * Bootstrap the application. */ -echo (new \Httpcb\Bootstrap(new Httpcb\Services())) - ->prepare()->run(); +$bootstrap = new \Httpcb\Bootstrap($serviceContainer); + +$bootstrap + ->prepare() + ->run($_SERVER["REQUEST_URI"]);