Skip to content

Commit

Permalink
Check if provider was default before fetching from target service
Browse files Browse the repository at this point in the history
  • Loading branch information
pkly committed Jan 1, 2023
1 parent c6d7030 commit 83349e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Entity/EntityProviderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getProvider(
?string $providerId = null
): ProviderInterface {
if (!array_key_exists($fqcn, $this->providers)) {
if ($this->targetService?->setFqcn($fqcn)) {
if (null === $providerId && $this->targetService?->setFqcn($fqcn)) {
return $this->targetService;
}

Expand Down

0 comments on commit 83349e9

Please sign in to comment.