<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\IDManager; class IDManager { private static $instances = array(); public static function register($yzKqK) { self::$instances[] = $yzKqK; } public static function all() { foreach (self::$instances as $ynzcc => $nfRLq) { if ($nfRLq instanceof \Closure) { self::$instances[$ynzcc] = call_user_func($nfRLq); } else { if (is_string($nfRLq)) { self::$instances[$ynzcc] = app($nfRLq); } } } return self::$instances; } public static function get($TTiWe) { goto M0oI1; qlHX_: foreach (self::all() as $Fq0yT) { if ($Fq0yT->name() == $TTiWe) { return $Fq0yT; } } goto hgcRY; hgcRY: return null; goto srRVB; M0oI1: $TTiWe = modstart_config($TTiWe, $TTiWe); goto qlHX_; srRVB: } }