<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\AdminManager\Core; use Illuminate\Events\Dispatcher; use Illuminate\Support\ServiceProvider; use ModStart\Admin\Config\AdminMenu; use Module\Vendor\Admin\Widget\AdminWidgetLink; class ModuleServiceProvider extends ServiceProvider { public function boot(Dispatcher $WNxvc) { AdminMenu::register(function () { return array(array('title' => L('Admin Manage'), 'icon' => 'user-o', 'sort' => 500, 'children' => array(array('title' => L('Admin Role'), 'url' => '\\ModStart\\Admin\\Controller\\AdminRoleController@index'), array('title' => L('Admin Role Manage'), 'rule' => 'AdminRoleManage', 'hide' => true), array('title' => L('Admin User'), 'url' => '\\ModStart\\Admin\\Controller\\AdminUserController@index'), array('title' => L('Admin User Manage'), 'rule' => 'AdminUserManage', 'hide' => true), array('title' => L('Admin Log'), 'url' => '\\ModStart\\Admin\\Controller\\AdminLogController@index'), array('title' => L('Admin Log Manage'), 'rule' => 'AdminLogManage', 'hide' => true), array('title' => L('Change password'), 'url' => '\\ModStart\\Admin\\Controller\\ProfileController@changePassword', 'hide' => true))), array('title' => L('System Manage'), 'icon' => 'code-alt', 'sort' => 700, 'children' => array(array('title' => L('System Manage'), 'rule' => 'SystemManage', 'url' => '\\ModStart\\Admin\\Controller\\SystemController@index', 'hide' => true), array('title' => L('Data File Manager View'), 'rule' => 'DataFileManagerView', 'url' => '\\ModStart\\Admin\\Controller\\DataController@index', 'hide' => true), array('title' => L('Data File Manager Upload'), 'rule' => 'DataFileManagerUpload', 'hide' => true), array('title' => L('Data File Manager Delete'), 'rule' => 'DataFileManagerDelete', 'hide' => true), array('title' => L('Data File Manager Add/Edit'), 'rule' => 'DataFileManagerAdd/Edit', 'hide' => true), array('title' => L('System Upgrade'), 'rule' => 'SystemUpgrade', 'hide' => true)))); }); AdminWidgetLink::register(function () { $sRNf0 = array(); $sRNf0[] = array(L('Home'), modstart_web_url('')); return AdminWidgetLink::build(L('System'), $sRNf0); }); } public function register() { } }