#### 问题描述
在中间件中,注入app\common\service\AuthService 类
用DI
```php
#[Inject]
private AuthService $authService;
```
注入,报错
```php
Typed property app\\common\\middleware\\Auth::$authService must not be accessed before initialization
```
变成只能new一个
```php
public function __construct($data)
{
$this->data = $data;
$this->authService = new AuthService();
}
```
#### 截图报错信息里报错文件相关代码
