diff --git a/src/Service/Entity/EntityProviderService.php b/src/Service/Entity/EntityProviderService.php index cba0601..6717098 100644 --- a/src/Service/Entity/EntityProviderService.php +++ b/src/Service/Entity/EntityProviderService.php @@ -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; }