From be0c0e9971871c2cdc03e79ce5816228c6994851 Mon Sep 17 00:00:00 2001 From: Ronald Marfoldi Date: Fri, 16 Dec 2022 09:52:32 +0100 Subject: [PATCH] Fix replaceArgument --- DependencyInjection/PetitPressGpsMessengerExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/PetitPressGpsMessengerExtension.php b/DependencyInjection/PetitPressGpsMessengerExtension.php index f37883c..db9beb8 100644 --- a/DependencyInjection/PetitPressGpsMessengerExtension.php +++ b/DependencyInjection/PetitPressGpsMessengerExtension.php @@ -29,7 +29,7 @@ public function load(array $configs, ContainerBuilder $container): void $gpsTransportFactoryDefinition->replaceArgument(1, new Reference($config['auth_cache'])); } if (isset($config['forced_transport'])) { - $gpsTransportFactoryDefinition->replaceArgument(2, new Reference($config['forced_transport'])); + $gpsTransportFactoryDefinition->replaceArgument(2, $config['forced_transport']); } } }