From c26c28d6fc38b04905644f86c6ee4e8ee885d40e Mon Sep 17 00:00:00 2001 From: sebprt Date: Tue, 16 Jan 2024 10:07:18 +0100 Subject: [PATCH] Ensures that the service used in the use option is public by default --- src/DependencyInjection/SatelliteDependencyInjection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DependencyInjection/SatelliteDependencyInjection.php b/src/DependencyInjection/SatelliteDependencyInjection.php index 1370c2d4..80509e93 100644 --- a/src/DependencyInjection/SatelliteDependencyInjection.php +++ b/src/DependencyInjection/SatelliteDependencyInjection.php @@ -93,7 +93,7 @@ public function __invoke(array $config): ContainerBuilder $definition->setFactory([$service['factory']['class'], $service['factory']['method']]); } - $definition->setPublic($service['public']); + $definition->setPublic($config['use'] === $identifier ? true : $service['public']); } }