<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\IDManager; class IDManager { private static $instances = array(); public static function register($kHDkQ) { self::$instances[] = $kHDkQ; } public static function all() { foreach (self::$instances as $D5qRP => $qGgGl) { if ($qGgGl instanceof \Closure) { self::$instances[$D5qRP] = call_user_func($qGgGl); } else { if (is_string($qGgGl)) { self::$instances[$D5qRP] = app($qGgGl); } } } return self::$instances; } public static function get($aVT3z) { goto FzOg2; FzOg2: $aVT3z = modstart_config($aVT3z, $aVT3z); goto MZ_Mq; hmePc: return null; goto X2Sw8; MZ_Mq: foreach (self::all() as $KFErn) { if ($KFErn->name() == $aVT3z) { return $KFErn; } } goto hmePc; X2Sw8: } }