From 174ba5f06a468ccf24b20a233edfd37046c976dc Mon Sep 17 00:00:00 2001 From: Gonzalo Alonso Date: Wed, 10 Mar 2021 17:41:37 -0300 Subject: [PATCH] #1 --- src/DependencyInjection/Configuration.php | 46 +++++++++++------------ 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index d597a59..c13cc5e 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -10,34 +10,30 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder('afip'); - $rootNode = $treeBuilder->root('afip_parameters'); + $rootNode = $treeBuilder->getRootNode('parameters'); $rootNode ->children() - ->arrayNode('parameters') - ->children() - ->scalarNode('CUIT') - ->defaultValue(0) - ->end() - ->booleanNode('production') - ->defaultFalse() - ->end() - ->scalarNode('res_folder') - ->defaultValue('config/packages/afip_res/') - ->end() - ->scalarNode('ta_folder') - ->defaultValue('config/packages/afip_res/') - ->end() - ->scalarNode('cert') - ->defaultValue('cert') - ->end() - ->scalarNode('key') - ->defaultValue('key') - ->end() - ->scalarNode('passphrase') - ->defaultValue('') - ->end() - ->end() + ->scalarNode('CUIT') + ->defaultValue(0) + ->end() + ->booleanNode('production') + ->defaultFalse() + ->end() + ->scalarNode('res_folder') + ->defaultValue('config/packages/afip_res/') + ->end() + ->scalarNode('ta_folder') + ->defaultValue('config/packages/afip_res/') + ->end() + ->scalarNode('cert') + ->defaultValue('cert') + ->end() + ->scalarNode('key') + ->defaultValue('key') + ->end() + ->scalarNode('passphrase') + ->defaultValue('') ->end() ->end() ;