<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Partner\Core; use Illuminate\Events\Dispatcher; use Illuminate\Support\Facades\Log; use Illuminate\Support\ServiceProvider; use ModStart\Admin\Config\AdminMenu; use ModStart\Module\ModuleClassLoader; use Module\Partner\Biz\PartnerPositionBiz; use Module\Vendor\Admin\Widget\AdminWidgetLink; class ModuleServiceProvider extends ServiceProvider { public function boot(Dispatcher $sWXb7) { goto JJq05; jPsdx: PartnerPositionBiz::registerQuick('page', '独立页面'); goto o54tf; bQssW: AdminMenu::register(function () { return array(array('title' => '物料管理', 'icon' => 'description', 'sort' => 200, 'children' => array(array('title' => '友情链接', 'url' => '\\Module\\Partner\\Admin\\Controller\\PartnerController@index')))); }); goto wJgor; o54tf: AdminWidgetLink::register(function () { $jSsIt = array(); $jSsIt[] = array('友情链接', modstart_web_url('partner')); return AdminWidgetLink::build('系统', $jSsIt); }); goto bQssW; JJq05: if (method_exists(ModuleClassLoader::class, 'addClass')) { ModuleClassLoader::addClass('MPartner', __DIR__ . '/../Helpers/MPartner.php'); } goto jPsdx; wJgor: } public function register() { } }