public static function run() {
        try {
            $router = new Router();

            (new ModuleLoader())->loadModules($router);

            $router->findRoute();

            Environment::load();
            Config::load();
            Helpers::load();
            Libraries::load();

            $mvcManager = new MvcManager();
            $mvcManager->runMvc(Router::$currentRoute);
        } catch (\Exception $e) {
            echo $e->getMessage();
            exit;
        }
    }
public static function run() {
        try {
            $router = new Router();

            (new ModuleLoader())->loadModules($router);

            $router->findRoute();

            Environment::load();
            Config::load();
            Helpers::load();
            Libraries::load();

            $mvcManager = new MvcManager();
            $mvcManager->runMvc(Router::$currentRoute);
        } catch (\Exception $e) {
            echo $e->getMessage();
            exit;
        }
    }
public static function run ( ) { try { $ router = new Router ( ) ; ( new ModuleLoader ( ) ) -> loadModules ( $ router ) ; $ router -> findRoute ( ) ; Environment :: load ( ) ; Config :: load ( ) ; Helpers :: load ( ) ; Libraries :: load ( ) ; $ mvcManager = new MvcManager ( ) ; $ mvcManager -> runMvc ( Router :: $ currentRoute ) ; } catch ( \ Exception $ e ) { echo $ e -> getMessage ( ) ; exit ; } }
Initializes the framework.

This method does not accept parameters and does not return anything.
It runs the router, prepare the config values, helpers, libraries and MVC Manager

@return void
@throws Exception if one of these components fails: Router, Config, Helpers, Libraries, MVC MAnager.
Initializes the framework .