Webman的依赖注入可以支持php8的注解吗?期待。

西门黄瓜多

php8的注解本人非常喜欢。webman我也非常喜欢。
那么:
Webman的依赖注入可以支持php8的注解吗?
比如

#[Autowired]

private UserService $userService;

2167 1 1
1个回答

walkor

webman使用的是 https://github.com/PHP-DI/PHP-DI
https://github.com/PHP-DI/PHP-DI/pull/738 看起来 PHP-DI v7版本会支持php8的注解。我们等它发布v7就能支持了

  • 暂无评论
年代过于久远,无法发表回答
🔝