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