<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\CmsHelp\Core; use Illuminate\Events\Dispatcher; use Illuminate\Support\ServiceProvider; use ModStart\Admin\Config\AdminMenu; use ModStart\Core\Util\TreeUtil; use Module\Vendor\Admin\Widget\AdminWidgetLink; use Module\Vendor\Provider\SuperSearch\SuperSearchBiz; class ModuleServiceProvider extends ServiceProvider { public function boot(Dispatcher $Ezjyr) { goto DXpK3; crsTm: AdminMenu::register(function () { return array(array('title' => '帮助中心', 'icon' => 'book', 'sort' => 150, 'children' => array(array('title' => '帮助分类', 'url' => '\\Module\\CmsHelp\\Admin\\Controller\\CmsHelpCategoryController@index'), array('title' => '内容管理', 'url' => '\\Module\\CmsHelp\\Admin\\Controller\\CmsHelpController@index'), array('title' => '快捷导航', 'url' => '\\Module\\CmsHelp\\Admin\\Controller\\CmsHelpQuickNavController@index'), array('title' => '帮助中心搜索索引', 'url' => '\\Module\\CmsHelp\\Admin\\Controller\\SuperSearchController@index'), array('title' => '帮助中心设置', 'url' => '\\Module\\CmsHelp\\Admin\\Controller\\ConfigController@index')))); }); goto V49jG; DXpK3: AdminWidgetLink::register(function () { $Yq2Il = array(); $Yq2Il[] = array('首页', modstart_web_url('help')); $ks37X = TreeUtil::modelToTree('cms_help_category', array('name' => 'name')); $VrSDP = TreeUtil::treeToListWithIndent($ks37X, 'id', 'name'); $Yq2Il = array_merge($Yq2Il, array_map(function ($gvTPQ) { return array('分类:' . $gvTPQ['title'], modstart_web_url("help/category/{$gvTPQ['id']}")); }, $VrSDP)); return AdminWidgetLink::build('帮助中心', $Yq2Il); }); goto s5hpx; s5hpx: SuperSearchBiz::register(CmsHelpSuperSearchBiz::class); goto crsTm; V49jG: } public function register() { } }