You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TaxonomyLoadTree producer only accepts the EntityTypeManager. This causes issues when the service is replaced by something else. An example is the service from the Web Profiler.
Steps to reproduce
Create a type resolver that uses the TaxonomyLoadTree producer.
Enable the Web Profiler module
Run a GraphQL query that uses the producer
This causes
Argument 4 passed to Drupal\\graphql\\Plugin\\GraphQL\\DataProducer\\Taxonomy\\TaxonomyLoadTree::__construct() must be an instance of Drupal\\Core\\Entity\\EntityTypeManager, instance of Drupal\\webprofiler\\Entity\\EntityManagerWrapper given, called in /var/www/html/modules/contrib/graphql/src/Plugin/GraphQL/DataProducer/Taxonomy/TaxonomyLoadTree.php on line 94