rainlee / think-route-patch
解决ThinkPHP6路由验证器优先于中间件执行的扩展
v1.0.0
2022-05-23 04:13 UTC
Requires
- php: >=7.1
- topthink/framework: ^6.0
This package is not auto-updated.
Last update: 2024-09-24 13:12:42 UTC
README
think-route-patch
介绍
解决 ThinkPHP6 路由验证器优先于中间件执行的解决方案
软件架构
利用 ThinkPHP6.0 的容器功能绑定自定义的 Route 类库来解决路由验证器优先于路由中间件执行的问题
安装教程
$ composer require rainlee/think-route-patch
使用说明
修改 app 目录下的 provider.php 文件,增加键为 think\Route 或 route,值为 \rainlee\route\Route::class 的参数
解决方案详细介绍:https://blog.csdn.net/lihongyu101/article/details/124925559