public/index.php: pass uri to Httpcb\Bootstrap::run()
This commit is contained in:
parent
4bf76f87f1
commit
0508e7cea7
1 changed files with 7 additions and 2 deletions
|
|
@ -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"]);
|
||||||
|
|
|
||||||
Reference in a new issue