<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\IDManager; class IDManager { private static $instances = array(); public static function register($oMd7I) { self::$instances[] = $oMd7I; } public static function all() { foreach (self::$instances as $kEhTf => $y2Ltn) { if ($y2Ltn instanceof \Closure) { self::$instances[$kEhTf] = call_user_func($y2Ltn); } else { if (is_string($y2Ltn)) { self::$instances[$kEhTf] = app($y2Ltn); } } } return self::$instances; } public static function get($L1N0l) { goto jBdEj; jBdEj: $L1N0l = modstart_config($L1N0l, $L1N0l); goto B7vg1; B7vg1: foreach (self::all() as $JUOKE) { if ($JUOKE->name() == $L1N0l) { return $JUOKE; } } goto yMryy; yMryy: return null; goto xtDA0; xtDA0: } }