<?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 HghOL; gmk1k: ModuleManager::callHook($h8H9D, 'hookBeforeDisable'); goto kWcQa; poGJu: ModuleManager::saveUserInstalledModules($acEAc); goto gFfiI; MEGA8: if (PHP_VERSION_ID >= 80000) { Event::dispatch($aHEo6); } else { Event::fire($aHEo6); } goto gjHhI; kWcQa: $acEAc[$h8H9D]['enable'] = false; goto poGJu; gjHhI: $this->info('Module Disable Success'); goto By4Tc; gFfiI: ModStart::clearCache(); goto RdLi7; Rwp2b: BizException::throwsIf(L('Module Invalid'), !ModuleManager::isExists($h8H9D)); goto HcBEC; F5iYW: $aHEo6->name = $h8H9D; goto MEGA8; S221l: $gm6dM = ModuleManager::getModuleBasic($h8H9D); goto IlV32; IlV32: BizException::throwsIf('Module basic empty', !$gm6dM); goto gmk1k; HghOL: $h8H9D = $this->argument('module'); goto Rwp2b; RdLi7: $aHEo6 = new ModuleDisabledEvent(); goto F5iYW; HcBEC: $acEAc = ModuleManager::listAllInstalledModules(); goto S221l; By4Tc: } }