global_path = $global_path; $this->profile_name = Console::parse($argv); $this->superRegister(); } public function superRegister(): void { // 核心 Core::getInstance($this->global_path, $this->profile_name); // 环境 Env::getInstance(); // 排程 Schedule::getInstance(); // 插件中心 Plugin::getInstance(); // 配置 Config::getInstance(); // 缓存中心 Cache::getInstance(); // 日志 Log::getInstance(); // 设备/取前缀 Device::getInstance(); // 请求中心 Request::getInstance(); // 时间锁 TimeLock::getInstance(); // 过滤词 FilterWords::getInstance(); // 签名 Sign::getInstance(); // 用户 User::getInstance(); // 通知中心 Notice::getInstance(); // 任务中心 Task::getInstance(); // 控制台 Console::getInstance(); } /** * @return void */ public function run(): void { Console::getInstance()->register(); } }