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 174ba5f commit ff0d007
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,34 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder('afip');
$rootNode = $treeBuilder->getRootNode('parameters');
$rootNode = $treeBuilder->getRootNode();

$rootNode
->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('')
->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()
->end()
->end()
;
Expand Down

0 comments on commit ff0d007

Please sign in to comment.