Skip to content

Commit

Permalink
#1
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloalonsod authored Mar 10, 2021
1 parent 15e69c0 commit 174ba5f
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
;
Expand Down

0 comments on commit 174ba5f

Please sign in to comment.