<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\IDManager; class IDManager { private static $instances = array(); public static function register($O9Vtg) { self::$instances[] = $O9Vtg; } public static function all() { foreach (self::$instances as $MFVkb => $YxV2x) { if ($YxV2x instanceof \Closure) { self::$instances[$MFVkb] = call_user_func($YxV2x); } else { if (is_string($YxV2x)) { self::$instances[$MFVkb] = app($YxV2x); } } } return self::$instances; } public static function get($MGY9H) { goto D9k94; xcx0Y: foreach (self::all() as $ZJ2bW) { if ($ZJ2bW->name() == $MGY9H) { return $ZJ2bW; } } goto JHLGU; D9k94: $MGY9H = modstart_config($MGY9H, $MGY9H); goto xcx0Y; JHLGU: return null; goto YZAMu; YZAMu: } }