Exemple #1
0
        // the order matters!
        self::$languages = new MF_Language_Manager();
    }
    /**
     * setup the things that every app has
     *
     * it is up to the mainLoop() of the different types of app
     * to setup the rest (user, page, and theme)
     */
    public static function init()
    {
        // self::$browsers   = new MF_Browser_Manager();
        // self::$users      = new MF_User_Manager();
        // self::$routes     = new MF_Routing_Manager();
        // self::$pages      = new MF_Page_Manager();
        // self::$themes     = new MF_Theme_Manager();
        // self::$debug      = new MF_Debug_Manager();
        // disable debugging if we are unit testing
        // if (defined('UNIT_TEST') && UNIT_TEST)
        //{
        //        self::$debug->setEnabled(false);
        //}
        // with the general environment loaded, we can now load
        // the modules that are app-specific
        self::$request = new MF_App_Request();
        self::$response = new MF_App_Response();
        self::$conditions = new MF_App_Conditions();
    }
}
MF_App::initInitial();