require_once MO_APP_DIR . '/Error/Errors.php'; require_once MO_APP_DIR . '/Util/ParameterHolder.php'; require_once MO_APP_DIR . '/Config/ConfigCache.php'; require_once MO_APP_DIR . '/Config/ConfigHandler.php'; require_once MO_APP_DIR . '/Config/ParameterParser.php'; require_once MO_APP_DIR . '/Config/IniConfigHandler.php'; require_once MO_APP_DIR . '/Config/AutoloadConfigHandler.php'; require_once MO_APP_DIR . '/Config/LoggingConfigHandler.php'; require_once MO_APP_DIR . '/Config/RootConfigHandler.php'; require_once MO_APP_DIR . '/Exception/MojaviException.php'; require_once MO_APP_DIR . '/Exception/AutoloadException.php'; require_once MO_APP_DIR . '/Exception/CacheException.php'; require_once MO_APP_DIR . '/Exception/ConfigurationException.php'; require_once MO_APP_DIR . '/Exception/ParseException.php'; require_once MO_APP_DIR . '/Util/Toolkit.php'; // clear our cache if the conditions are right if (MO_DEBUG) { error_log("================================ Clearing Cache ===================================="); ConfigCache::clear(); } // load base settings ConfigCache::import('config/settings.ini'); // required classes for the framework ConfigCache::import('config/compile.conf'); } catch (MojaviException $e) { $e->printStackTrace(); } catch (Exception $e) { // unknown exception $e = new MojaviException($e->getMessage()); $e->printStackTrace(); }