From 42c49ede1f7baaae73c7d836c1dfdc116b0e3152 Mon Sep 17 00:00:00 2001 From: Joanna Rawska Date: Thu, 2 Jun 2022 09:22:05 +0200 Subject: [PATCH] Fix extension configuration --- src/DependencyInjection/AnswearAcsExtension.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/DependencyInjection/AnswearAcsExtension.php b/src/DependencyInjection/AnswearAcsExtension.php index 27bd92d..221a940 100755 --- a/src/DependencyInjection/AnswearAcsExtension.php +++ b/src/DependencyInjection/AnswearAcsExtension.php @@ -24,6 +24,13 @@ public function load(array $configs, ContainerBuilder $container): void $config = $this->processConfiguration($configuration, $configs); $definition = $container->getDefinition(ConfigProvider::class); - $definition->setArguments([]); + $definition->setArguments([ + $config['apiKey'], + $config['companyId'], + $config['companyPassword'], + $config['userId'], + $config['userPassword'], + $config['language'], + ]); } }