[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DispatcherFactory.php #3204

Merged
merged 3 commits into from
Jan 26, 2021
Merged

Update DispatcherFactory.php #3204

merged 3 commits into from
Jan 26, 2021

Conversation

lionXu86
Copy link
Contributor

rpc-server组件下的DispatcherFactory的handleRpcService方法中的$middlewares变量设置有bug,在rpc service中如果通过注解给一个方法添加中间件后,其后面的方法不管是否使用注解,都会连带使用上面方法设置的中间件,目前我们项目的解决办法是在该DispatcherFactory的139行添加 $middlewares = []; ,即每次循环都会清空上个方法的注解

lionXu86 and others added 3 commits January 26, 2021 13:27
rpc-server组件下的DispatcherFactory的handleRpcService方法中的$middlewares变量设置有bug,在rpc service中如果通过注解给一个方法添加中间件后,其后面的方法不管是否使用注解,都会连带使用上面方法设置的中间件,目前我们项目的解决办法是在该DispatcherFactory的139行添加 $middlewares = []; ,即每次循环都会清空上个方法的注解
@limingxinleo
Copy link
Member

fix #3203

@limingxinleo limingxinleo merged commit b7687d9 into hyperf:master Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants