From d490e928d9bc4ec71449f0739e7ce18c7be599b4 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 18 Jun 2018 20:11:38 +0200 Subject: [PATCH] public/index.php: skip debug code here. also call Httpcb\Bootstrap::prepare() --- public/index.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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();