<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SmsTemplate; class SmsTemplateProvider { private static $instances = array(); public static function register($tcA2a) { self::$instances[] = $tcA2a; } public static function all() { foreach (self::$instances as $d2HEV => $hf0nR) { if ($hf0nR instanceof \Closure) { self::$instances[$d2HEV] = call_user_func($hf0nR); } else { if (is_string($hf0nR)) { self::$instances[$d2HEV] = app($hf0nR); } } } return self::$instances; } public static function map() { goto qIzk7; qIzk7: $n_mIb = array(); goto ZrYkN; ZrYkN: foreach (self::all() as $zEBpl) { $n_mIb[$zEBpl->name()] = array('name' => $zEBpl->name(), 'title' => $zEBpl->title(), 'description' => $zEBpl->description(), 'example' => $zEBpl->example()); } goto bZTN3; bZTN3: return $n_mIb; goto nEhki; nEhki: } }