<?php
/**
 * 定时执行数据计算
 */

$appDir = realpath(dirname(__FILE__). '/../../') ;
$wwwDir = realpath(dirname(__FILE__). '/../../../') ;

require_once $appDir . DIRECTORY_SEPARATOR . 'globals.php';

// 初始化开发框架基本设置
$config = new \stdClass();
$config->currentApp = APP_NAME;
$config->appPath = APP_PATH;
$config->appStatus = APP_STATUS;
$config->enableTrace = ENABLE_TRACE;
$config->enableXhprof = ENABLE_XHPROF;
$config->xhprofRate = XHPROF_RATE;
$config->enableWriteReqLog = WRITE_REQUEST_LOG;
$config->enableSecurityMap = SECURITY_MAP_ENABLE;
$config->exceptionPage = VIEW_PATH . 'exception.php';
$config->ajaxProtocolClass = 'ajax';
$config->enableReflectMethod = ENABLE_REFLECT_METHOD;

$config->customRewriteClass = "main\\app\\classes\\RewriteUrl";
$config->customRewriteFunction = "orgRoute";

// 实例化开发框架对象
$framework = new \framework\HornetEngine($config);