<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SmsTemplate; class SmsTemplateProvider { private static $instances = array(); public static function register($kHDkQ) { self::$instances[] = $kHDkQ; } public static function all() { foreach (self::$instances as $D5qRP => $qGgGl) { if ($qGgGl instanceof \Closure) { self::$instances[$D5qRP] = call_user_func($qGgGl); } else { if (is_string($qGgGl)) { self::$instances[$D5qRP] = app($qGgGl); } } } return self::$instances; } public static function map() { goto wANfh; GIJqc: return $our4j; goto J68Nb; Io_yj: foreach (self::all() as $FSL7c) { $our4j[$FSL7c->name()] = array('name' => $FSL7c->name(), 'title' => $FSL7c->title(), 'description' => $FSL7c->description(), 'example' => $FSL7c->example()); } goto GIJqc; wANfh: $our4j = array(); goto Io_yj; J68Nb: } }