api-platform / api-platform/core

Use tagged instead of CompilerPass

Aperta
#3,172 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
2.6k
Fork
980
Merge medio
2g 4h
PR unite (30g)
49

Descrizione

**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
-
-
-


-
+

```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.