/** * スタンドアローン版 */ public static function standalone() { $scope = Scope::create(null, 'NoraScope')->setComponent('Autoloader', function () { return Nora::Autoloader(); })->on('app.pre_configure', function ($e) { # モジュールロードパスを追加 $e->app->ModuleLoader()->addModulePath(realpath(__DIR__ . '/../modules')); # コンフィグロードパスを追加 $e->app->Config()->addConfigDir(realpath(__DIR__ . '/../..') . '/config'); }); self::$_app = new App($scope); self::configure(); return self::$_app; }