Skip to content

Commit 7f6ab05

Browse files
authoredFeb 24, 2018
Merge pull request #11 from xu42/patch-1
支持设置多个过滤器
2 parents e0dbd42 + 6a95f9f commit 7f6ab05

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎source/libs/middleware/filters.rst

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ tcp
3232
[
3333
"/Com/Yourcompany/Nova/Framework/Generic/Php/Service/GenericTestService/ThrowException", "genericServiceFilterGroup",
3434
],
35+
          // 支持设置多个过滤器
36+
          [
37+
"/com/Yourcompany/nova/framework/generic/service/GenericService/invoke", ["genericServiceFilterGroup", "another"],
38+
],
3539
[
3640
".*", "all"
3741
]
@@ -40,6 +44,9 @@ tcp
4044
"genericServiceFilterGroup" => [
4145
genericServiceFilter::class
4246
],
47+
"another" => [
48+
anotherFilter::class
49+
],
4350
"all" => [
4451
genericServiceFilter::class
4552
],

0 commit comments

Comments
 (0)
Please sign in to comment.