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"]);