public/index.php: skip debug code here. also call Httpcb\Bootstrap::prepare()
This commit is contained in:
parent
2e7c67ba8a
commit
d490e928d9
1 changed files with 2 additions and 11 deletions
|
|
@ -8,14 +8,5 @@ require_once APP_PATH . "/app/library/Services.php";
|
||||||
/**
|
/**
|
||||||
* Bootstrap the application.
|
* Bootstrap the application.
|
||||||
*/
|
*/
|
||||||
$bootstrap = new \Httpcb\Bootstrap(new Httpcb\Services());
|
echo (new \Httpcb\Bootstrap(new Httpcb\Services()))
|
||||||
|
->prepare()->run();
|
||||||
$config = $bootstrap->getDI()->get('config');
|
|
||||||
if ($config->application->debug) {
|
|
||||||
(new Phalcon\Debug)->listen();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Handle the request
|
|
||||||
*/
|
|
||||||
echo $bootstrap->run();
|
|
||||||
|
|
|
||||||
Reference in a new issue