增加说明

This commit is contained in:
2023-10-18 16:35:30 +08:00
parent 6195ac6be5
commit c941f12884
6 changed files with 6 additions and 21 deletions

View File

@@ -1,5 +1,6 @@
<?php <?php
// 当前文件的内容应当兼容 /extend/base/admin/config/admin.php的内容
// !当前文件的内容应当与 /extend/base/admin/config/admin.php的内容保持一直然后再根据实际情况设置
use think\facade\Env; use think\facade\Env;

View File

@@ -1,6 +1,6 @@
<?php <?php
// 当前文件的内容应当兼容 /extend/base/admin/event.php的内容 // !当前文件的内容应当 /extend/base/admin/event.php的内容一致,然后根据实际情况设置
// 事件定义文件 // 事件定义文件
return [ return [

View File

@@ -1,6 +1,6 @@
<?php <?php
// 当前文件的内容应当兼容 /extend/base/admin/middleware.php的内容 // !当前文件的内容应当 /extend/base/admin/middleware.php 的内容一致,然后再根据实际情况设置
// 全局中间件定义文件 // 全局中间件定义文件
return [ return [

View File

@@ -2,4 +2,5 @@
use think\facade\App; use think\facade\App;
// !注意,必须要引入该文件
include App::getRootPath() . '/extend/base/helper.php'; include App::getRootPath() . '/extend/base/helper.php';

View File

@@ -5,6 +5,7 @@ declare(strict_types=1);
use think\UlthonAdminService; use think\UlthonAdminService;
$service = [ $service = [
// !注意,必须要注册该服务
10 => UlthonAdminService::class, 10 => UlthonAdminService::class,
]; ];

View File

@@ -1,18 +0,0 @@
<?php
namespace think;
class UlthonAdminApp extends App
{
/**
* 加载应用文件和配置.
* @return void
*/
protected function load(): void
{
// 引入系统函数
include App::getRootPath() . '/extend/base/helper.php';
parent::load();
}
}