<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\IDManager; class IDManager { private static $instances = array(); public static function register($tDnAb) { self::$instances[] = $tDnAb; } public static function all() { foreach (self::$instances as $KAKiA => $Iim2u) { if ($Iim2u instanceof \Closure) { self::$instances[$KAKiA] = call_user_func($Iim2u); } else { if (is_string($Iim2u)) { self::$instances[$KAKiA] = app($Iim2u); } } } return self::$instances; } public static function get($zO6V5) { goto eNPSt; tC7tY: return null; goto rkWs5; CdlHg: foreach (self::all() as $xNBrU) { if ($xNBrU->name() == $zO6V5) { return $xNBrU; } } goto tC7tY; eNPSt: $zO6V5 = modstart_config($zO6V5, $zO6V5); goto CdlHg; rkWs5: } }