api-platform / api-platform/core

Use tagged instead of CompilerPass

未關閉
#3,172 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。