<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SmsTemplate; class SmsTemplateProvider { private static $instances = array(); public static function register($tDnAb) { self::$instances[] = $tDnAb; } public static function all() { foreach (self::$instances as $KAKiA => $Iim2u) { if ($Iim2u instanceof \Closure) { self::$instances[$KAKiA] = call_user_func($Iim2u); } else { if (is_string($Iim2u)) { self::$instances[$KAKiA] = app($Iim2u); } } } return self::$instances; } public static function map() { goto g0D67; aI3FL: return $oFNWf; goto fh1CE; g0D67: $oFNWf = array(); goto TF_rD; TF_rD: foreach (self::all() as $YaV4m) { $oFNWf[$YaV4m->name()] = array('name' => $YaV4m->name(), 'title' => $YaV4m->title(), 'description' => $YaV4m->description(), 'example' => $YaV4m->example()); } goto aI3FL; fh1CE: } }