示例#1
0
文件: wake.php 项目: clancats/core
 * the configurations. 
 * So after doing multiple projects came to the 
 * conclusion that the framework itself should detect the 
 * environent using the hostname or other params.
 */
if (!isset($environment)) {
    $environment = ClanCats::environment_detector(require CCROOT . 'boot/environment' . EXT);
}
/*
 *---------------------------------------------------------------
 * wake ccf
 *---------------------------------------------------------------
 * 
 * Lets wake the ccf and pass the environment.
 */
ClanCats::wake($environment);
unset($environment);
// at this point ccf has completet its own boot
CCProfiler::check("CCF - Boot completed.");
/*
 *---------------------------------------------------------------
 * output buffer
 *---------------------------------------------------------------
 * 
 * Start output buffering if it isn't disabled and we are not 
 * running ccf from the command line interface.
 */
if (!ClanCats::is_cli() && ClanCats::$config->output_buffering) {
    ob_start();
}
/*