<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SiteUrl; use ModStart\Core\Exception\BizException; class SiteUrlProvider { private static $list = array(); private static $init = false; public static function register($kHDkQ) { self::$list[] = $kHDkQ; } public static function get() { if (!self::$init) { self::$init = true; foreach (self::$list as $D5qRP => $qGgGl) { if (is_string($qGgGl)) { self::$list[$D5qRP] = app($qGgGl); } } } return self::$list; } public static function updateBiz($rqlzz, $ucbhG, $SLZ1j = '', $uxJUJ = array()) { goto NkITh; e6awZ: foreach (self::get() as $CGEHS) { $CGEHS->update($ucbhG, $SLZ1j, $uxJUJ); } goto P9jZC; XWeco: BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $ucbhG); goto e6awZ; NkITh: $uxJUJ['biz'] = $rqlzz; goto XWeco; P9jZC: } public static function update($ucbhG, $SLZ1j = '', $uxJUJ = array()) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $ucbhG); foreach (self::get() as $CGEHS) { $CGEHS->update($ucbhG, $SLZ1j, $uxJUJ); } } public static function delete($ucbhG) { BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $ucbhG); foreach (self::get() as $CGEHS) { $CGEHS->delete($ucbhG); } } }