<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\ContentVerify; class ContentVerifyProvider { 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 mzkUl; mzkUl: if (empty($TTiWe)) { return null; } goto r6v6B; J8Svv: return null; goto FeDid; r6v6B: foreach (self::all() as $kHxHl) { if ($kHxHl->name() == $TTiWe) { return $kHxHl; } } goto J8Svv; FeDid: } }