<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Command; use Illuminate\Console\Command; use ModStart\Core\Exception\BizException; use ModStart\Core\Util\FileUtil; use ModStart\Module\ModuleManager; class ModuleLinkAssetCommand extends Command { protected $signature = 'modstart:module-link-asset {module}'; public function handle() { goto pao27; Yzpde: $vjKNI = "vendor/{$JHuzz}"; goto ZYEhC; eDHJm: $ac9gE = ModuleManager::relativePath($JHuzz, 'Asset'); goto XoPQG; lQcFK: FileUtil::link($BoI_j, $KrvcX); goto XVaVr; XoPQG: $BoI_j = ModuleManager::path($JHuzz, 'Asset'); goto Yzpde; pao27: $JHuzz = $this->argument('module'); goto xzBrX; MkRbO: if (file_exists($KrvcX)) { $this->error("The [{$vjKNI}] link already exists."); return; } goto lQcFK; ZYEhC: $KrvcX = public_path($vjKNI); goto MkRbO; xzBrX: BizException::throwsIf('模块不存在', !ModuleManager::isExists($JHuzz)); goto eDHJm; XVaVr: $this->info("The [{$vjKNI}] link has been connected to [{$ac9gE}]"); goto HCdk5; HCdk5: } }