This repository was archived by the owner on Jan 4, 2020. It is now read-only.
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.
checkUrlMatch(...)返回值为false才表示动态路由未匹配成功ruleCache(...)中读取路由配置应当避免改变路由定义顺序,因为顺序也会影响路由的解析Dispatcher的getModule(&$paths)、getController(&$paths, $urlCase)和getAction(&$paths, $urlCase)方法把&$paths当做堆栈用,就不应该在堆栈中的数据处理完之前中途重置堆栈ruleCache(...)读取路由配置时,保持配置中路由定义的键的类型,以支持多个路由的路由表达式相同而路由参数不同的情况。在使用路由时,再处理键为整数索引的情况。