<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\EmailSmtp\Core; use Illuminate\Events\Dispatcher; use Illuminate\Support\ServiceProvider; use ModStart\Admin\Config\AdminMenu; use Module\EmailSmtp\Provider\SmtpMailSenderProvider; use Module\Vendor\Provider\MailSender\MailSenderProvider; class ModuleServiceProvider extends ServiceProvider { public function boot(Dispatcher $sWXb7) { goto zhel8; OYJjf: MailSenderProvider::register(SmtpMailSenderProvider::class); goto NYUQM; zhel8: AdminMenu::register(function () { return array(array('title' => L('Site Manage'), 'icon' => 'cog', 'sort' => 400, 'children' => array(array('title' => '短信邮箱', 'children' => array(array('title' => 'SMTP邮箱设置', 'url' => '\\Module\\EmailSmtp\\Admin\\Controller\\ConfigController@setting'), array('title' => 'SMTP邮箱测试', 'url' => '\\Module\\EmailSmtp\\Admin\\Controller\\ConfigController@test')))))); }); goto OYJjf; NYUQM: $this->app['config']->set('EmailSenderProvider', SmtpMailSenderProvider::NAME); goto PGoDe; PGoDe: } public function register() { } }