路由Rule支持 append、middleware方法多次调用
#3097
Merged
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
append在tp5是可以多次调用的,从tp6以后,做了一些减法,我觉得没必要。又不是什么复杂的代码,有与没有都不影响框架的复杂度,却影响了使用体验。我做cms系统,动态生成路由的时候同一个路由有多个步骤,需要多次append参数。搞得有点繁琐了,我只能把每步需要append的参数暂存起来,最后再一次的调用append。现有的框架代码只考虑人工手写路由的情形,觉得没有人会多次append。