<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\SmsTecmz\Core; use Illuminate\Events\Dispatcher; use Illuminate\Support\ServiceProvider; use ModStart\Admin\Config\AdminMenu; use ModStart\Module\ModuleClassLoader; use Module\SmsAliyun\Driver\SmsAliyunSender; use Module\SmsTecmz\Driver\SmsTecmzSender; use Module\SmsTecmz\Provider\SmsSender; use Module\Vendor\Provider\SmsSender\SmsSenderProvider; class ModuleServiceProvider extends ServiceProvider { public function boot(Dispatcher $Cl2i3) { AdminMenu::register(function () { return array(array('title' => L('Site Manage'), 'icon' => 'cog', 'sort' => 400, 'children' => array(array('title' => '短信邮箱', 'children' => array(array('title' => '魔众短信', 'url' => '\\Module\\SmsTecmz\\Admin\\Controller\\ConfigController@setting')))))); }); if (modstart_config('SmsTecmz_Enable', false)) { $this->app['config']->set('SmsSenderProvider', 'tecmz'); SmsSenderProvider::register(SmsSender::class); } } public function register() { } }