<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\ContentVerify; class ContentVerifyProvider { private static $instances = array(); public static function register($sefXk) { self::$instances[] = $sefXk; } public static function all() { foreach (self::$instances as $JdFJR => $PSYn9) { if ($PSYn9 instanceof \Closure) { self::$instances[$JdFJR] = call_user_func($PSYn9); } else { if (is_string($PSYn9)) { self::$instances[$JdFJR] = app($PSYn9); } } } return self::$instances; } public static function get($BjHij) { goto rHP2C; bImwB: foreach (self::all() as $vPOhn) { if ($vPOhn->name() == $BjHij) { return $vPOhn; } } goto bqgw2; bqgw2: return null; goto B4xHZ; rHP2C: if (empty($BjHij)) { return null; } goto bImwB; B4xHZ: } }