21 lines
446 B
PHP
21 lines
446 B
PHP
<?php
|
|
|
|
defined('APP_PATH') || define('APP_PATH', realpath('..'));
|
|
|
|
require_once APP_PATH . "/app/library/Bootstrap.php";
|
|
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();
|