Example #1
0
/**
 * Boots the engine
 *
 * 1. sets error handlers
 * 2. connects to database
 * 3. verifies the installation suceeded
 * 4. loads application configuration
 * 5. loads site configuration
 *
 * @access private
 */
function _elgg_engine_boot()
{
    // Register the error handlers
    set_error_handler('_elgg_php_error_handler');
    set_exception_handler('_elgg_php_exception_handler');
    register_translations(dirname(dirname(dirname(__FILE__))) . "/languages/");
    setup_db_connections();
    verify_installation();
    _elgg_load_application_config();
    _elgg_load_site_config();
    _elgg_load_cache();
}
Example #2
0
/**
 * Boots the engine
 *
 * 1. sets error handlers
 * 2. connects to database
 * 3. verifies the installation succeeded
 * 4. loads application configuration
 * 5. loads i18n data
 * 6. loads cached autoloader state
 * 7. loads site configuration
 *
 * @access private
 */
function _elgg_engine_boot()
{
    // Register the error handlers
    set_error_handler('_elgg_php_error_handler');
    set_exception_handler('_elgg_php_exception_handler');
    setup_db_connections();
    verify_installation();
    _elgg_load_application_config();
    _elgg_load_autoload_cache();
    _elgg_load_site_config();
    _elgg_session_boot();
    _elgg_load_cache();
    _elgg_load_translations();
}
Example #3
0
File: elgglib.php Project: n8b/VMN
/**
 * Boots the engine
 *
 * 1. sets error handlers
 * 2. connects to database
 * 3. verifies the installation succeeded
 * 4. loads application configuration
 * 5. loads i18n data
 * 6. loads cached autoloader state
 * 7. loads site configuration
 *
 * @access private
 */
function _elgg_engine_boot()
{
    // Register the error handlers
    set_error_handler('_elgg_php_error_handler');
    set_exception_handler('_elgg_php_exception_handler');
    _elgg_services()->db->setupConnections();
    _elgg_services()->db->assertInstalled();
    _elgg_load_application_config();
    _elgg_load_autoload_cache();
    _elgg_load_site_config();
    _elgg_session_boot();
    _elgg_services()->systemCache->loadAll();
    _elgg_services()->translator->loadTranslations();
}
Example #4
0
/**
 * Boots the engine
 *
 * 1. sets error handlers
 * 2. connects to database
 * 3. verifies the installation succeeded
 * 4. loads application configuration
 * 5. loads i18n data
 * 6. loads cached autoloader state
 * 7. loads site configuration
 *
 * @access private
 */
function _elgg_engine_boot()
{
    // Register the error handlers
    set_error_handler('_elgg_php_error_handler');
    set_exception_handler('_elgg_php_exception_handler');
    $db = _elgg_services()->db;
    // we inject the logger here to allow use of DB without loading core
    $db->setLogger(_elgg_services()->logger);
    $db->setupConnections();
    $db->assertInstalled();
    _elgg_load_application_config();
    _elgg_load_site_config();
    _elgg_session_boot();
    _elgg_services()->systemCache->loadAll();
    _elgg_services()->translator->loadTranslations();
}