修复中间件传参解析冲突#282
Merged
Merged
Conversation
d0396c7 to
6794e7f
Compare
crazywhalecc
approved these changes
Feb 8, 2023
Member
|
是不是意思就是,已经绑定的对象,不能再次在 call 时传入相同的对象? |
Member
Author
实际上是尽量避免以数字索引作为参数,因为我们没法约束用户获取参数的顺序,但因为 Pipeline 的实现不支持传入关联数组,所以建议仅传入必要的参数,一些本身已经绑定到容器的实例就没必要重复传入,因为可以直接从容器中解析。 另一类比如路由的 换言之,如果在调用处理时传入了参数,则监听该事件的方法也必须以相同的顺序接受参数。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.