$val) { putenv("{$key}={$val}"); } if (getenv('APP_DEBUG')) { Debugger::enable(Debugger::DEVELOPMENT); } $config = require __DIR__ . '/../config/app.php'; $app = new ModularApplication($config); $app->pipe(new \app\lib\AuthMiddleware($app)); $app->pipe(new \app\lib\CorsMiddleware()); $app->run();