<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SmsTemplate; class SmsTemplateProvider { 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 map() { goto jXe_O; C7eFQ: return $KG028; goto YJtl8; jXe_O: $KG028 = array(); goto njDSE; njDSE: foreach (self::all() as $kHxHl) { $KG028[$kHxHl->name()] = array('name' => $kHxHl->name(), 'title' => $kHxHl->title(), 'description' => $kHxHl->description(), 'example' => $kHxHl->example()); } goto C7eFQ; YJtl8: } }