Skip to content

Conversation

Kingdutch
Copy link
Contributor

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.

By accepting the Interface instead, alternative implementations can be used while guaranteeing they provide the proper functionality.

Fixes #950

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.

By accepting the Interface instead, alternative implementations can be used while guaranteeing they provide the proper functionality.

Fixes drupal-graphql#950
@codecov
Copy link

codecov bot commented Nov 30, 2019

Codecov Report

Merging #951 into 8.x-4.x will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             8.x-4.x     #951   +/-   ##
==========================================
  Coverage      61.81%   61.81%           
  Complexity       678      678           
==========================================
  Files             95       95           
  Lines           1409     1409           
==========================================
  Hits             871      871           
  Misses           538      538
Impacted Files Coverage Δ Complexity Δ
...GraphQL/DataProducer/Taxonomy/TaxonomyLoadTree.php 0% <ø> (ø) 23 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b0055eb...6e0f224. Read the comment docs.

@joaogarin joaogarin requested a review from fubhy February 21, 2020 13:22
@fubhy fubhy merged commit 89327a3 into drupal-graphql:8.x-4.x Feb 22, 2020
@Kingdutch Kingdutch deleted the patch-1 branch February 22, 2020 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TaxonomyLoadTree should accept EntityTypeManagerInterface instead of EntityTypeManager
3 participants