/** * 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(); }
/** * 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(); }