<?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 $Cl2i3) { goto nM2rt; nM2rt: 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 SprB_; SprB_: MailSenderProvider::register(SmtpMailSenderProvider::class); goto YKxrr; YKxrr: $this->app['config']->set('EmailSenderProvider', SmtpMailSenderProvider::NAME); goto sME_z; sME_z: } public function register() { } }