<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\IDManager; class IDManager { private static $instances = array(); public static function register($sefXk) { self::$instances[] = $sefXk; } public static function all() { foreach (self::$instances as $JdFJR => $PSYn9) { if ($PSYn9 instanceof \Closure) { self::$instances[$JdFJR] = call_user_func($PSYn9); } else { if (is_string($PSYn9)) { self::$instances[$JdFJR] = app($PSYn9); } } } return self::$instances; } public static function get($BjHij) { goto cMSlZ; IRtmU: foreach (self::all() as $ciwZZ) { if ($ciwZZ->name() == $BjHij) { return $ciwZZ; } } goto bY2rO; bY2rO: return null; goto kv0PH; cMSlZ: $BjHij = modstart_config($BjHij, $BjHij); goto IRtmU; kv0PH: } }