<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SmsTemplate; class SmsTemplateProvider { private static $instances = array(); public static function register($O9Vtg) { self::$instances[] = $O9Vtg; } public static function all() { foreach (self::$instances as $MFVkb => $YxV2x) { if ($YxV2x instanceof \Closure) { self::$instances[$MFVkb] = call_user_func($YxV2x); } else { if (is_string($YxV2x)) { self::$instances[$MFVkb] = app($YxV2x); } } } return self::$instances; } public static function map() { goto xqG2D; Gz83x: return $z0UO7; goto ldp1w; xqG2D: $z0UO7 = array(); goto tt_4J; tt_4J: foreach (self::all() as $Z32UA) { $z0UO7[$Z32UA->name()] = array('name' => $Z32UA->name(), 'title' => $Z32UA->title(), 'description' => $Z32UA->description(), 'example' => $Z32UA->example()); } goto Gz83x; ldp1w: } }