<?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 $Cl2i3) { goto xCLZR; lxGiv: AdminWidgetLink::register(function () { $VVmJT = array(); $VVmJT[] = array('友情链接', modstart_web_url('partner')); return AdminWidgetLink::build('系统', $VVmJT); }); goto R11r2; CoVfY: PartnerPositionBiz::registerQuick('page', '独立页面'); goto lxGiv; R11r2: AdminMenu::register(function () { return array(array('title' => '物料管理', 'icon' => 'description', 'sort' => 200, 'children' => array(array('title' => '友情链接', 'url' => '\\Module\\Partner\\Admin\\Controller\\PartnerController@index')))); }); goto Hsrto; xCLZR: if (method_exists(ModuleClassLoader::class, 'addClass')) { ModuleClassLoader::addClass('MPartner', __DIR__ . '/../Helpers/MPartner.php'); } goto CoVfY; Hsrto: } public function register() { } }