mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
middleware.md
方法级别不需定义声明AutoController
This commit is contained in:
parent
3f85fa8bf0
commit
37c7326dcf
@ -141,7 +141,6 @@ class IndexController
|
||||
{
|
||||
|
||||
/**
|
||||
* @AutoController()
|
||||
* @Middlewares({
|
||||
* @Middleware(BarMiddleware::class)
|
||||
* })
|
||||
@ -290,4 +289,4 @@ location / {
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user