/** * Initializes the framework */ public static function run($config, $rootDir) { spl_autoload_register('Upendo::autoload'); //autoload unknown files self::$app = new App($config, $rootDir); //start the app self::$app->run($config); }
<?php require __DIR__ . '/vendor/autoload.php'; require 'vendor/hosannahighertech/upendo/Upendo.php'; $config = (require __DIR__ . '/system.php'); Upendo::run($config, __DIR__);