Archived
1
0
Fork 0

public/index.php: skip debug code here. also call Httpcb\Bootstrap::prepare()

This commit is contained in:
Henrik Hautakoski 2018-06-18 20:11:38 +02:00
parent 2e7c67ba8a
commit d490e928d9

View file

@ -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();