public static function run() { spl_autoload_register(array(__CLASS__, 'autoload')); $request = new \nx\core\Request(); $dispatcher = new \nx\core\Dispatcher(); $dispatcher->handle($request, self::getRoutes()); }
<?php require dirname(__DIR__) . '/config/bootstrap.php'; $request = new \nx\core\Request(); $dispatcher = new \nx\core\Dispatcher(); $dispatcher->handle($request, \app\config\Routes::get_routes());