api-platform / api-platform/core
Use tagged instead of CompilerPass
未关闭
- 主要语言
- PHP
- 星标
- 2.6k
- 派生
- 980
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 49
描述
**Description**
Instead of using compiler pass for getting tagged services in `ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\Compiler` for:
- Filters
- GraphQL mutation resolvers
- GraphQL query resolvers
- GraphQL types
We should use the tagged services feature of Symfony: https://symfony.com/doc/3.4/service_container/tags.html#reference-tagged-services
It allows to set priorities of the tagged services and it's less code to maintain.
**Example**
For the GraphQL types, in `graphql.xml` it will become:
```diff
-
-
-
-
+
```
贡献指南
评估
这个 Issue 还没有评估数据。