diff --git a/public/index.php b/public/index.php index c4d2bc6..cb7b01a 100644 --- a/public/index.php +++ b/public/index.php @@ -8,14 +8,5 @@ require_once APP_PATH . "/app/library/Services.php"; /** * Bootstrap the application. */ -$bootstrap = new \Httpcb\Bootstrap(new Httpcb\Services()); - -$config = $bootstrap->getDI()->get('config'); -if ($config->application->debug) { - (new Phalcon\Debug)->listen(); -} - -/** - * Handle the request - */ -echo $bootstrap->run(); +echo (new \Httpcb\Bootstrap(new Httpcb\Services())) + ->prepare()->run();