<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Command; use Illuminate\Console\Command; use Illuminate\Support\Facades\Event; use ModStart\Core\Events\ModuleDisabledEvent; use ModStart\Core\Exception\BizException; use ModStart\ModStart; use ModStart\Module\ModuleManager; class ModuleDisableCommand extends Command { protected $signature = 'modstart:module-disable {module}'; public function handle() { goto aGDNr; M7bVj: if (PHP_VERSION_ID >= 80000) { Event::dispatch($fPCm9); } else { Event::fire($fPCm9); } goto yZybv; yZybv: $this->info('Module Disable Success'); goto jeyH3; z7ngm: $fPCm9->name = $CiBrR; goto M7bVj; aGDNr: $CiBrR = $this->argument('module'); goto zHf1H; WnFqw: BizException::throwsIf('Module basic empty', !$LJ5W3); goto a33eX; rEgbK: $uDm81[$CiBrR]['enable'] = false; goto yYMhs; WCkdg: ModStart::clearCache(); goto YG8y0; ZQzMA: $uDm81 = ModuleManager::listAllInstalledModules(); goto XWjbD; a33eX: ModuleManager::callHook($CiBrR, 'hookBeforeDisable'); goto rEgbK; YG8y0: $fPCm9 = new ModuleDisabledEvent(); goto z7ngm; XWjbD: $LJ5W3 = ModuleManager::getModuleBasic($CiBrR); goto WnFqw; zHf1H: BizException::throwsIf(L('Module Invalid'), !ModuleManager::isExists($CiBrR)); goto ZQzMA; yYMhs: ModuleManager::saveUserInstalledModules($uDm81); goto WCkdg; jeyH3: } }