for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Loevgaard\DandomainAltapayBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('loevgaard_dandomain_altapay');
$rootNode
->children()
->scalarNode('altapay_username')->end()
->scalarNode('altapay_password')->end()
->arrayNode('altapay_ips')
->prototype('scalar')->end()
->defaultValue(['77.66.40.133', '77.66.62.133'])
->end()
->scalarNode('shared_key_1')->end()
->scalarNode('shared_key_2')->end()
->scalarNode('terminal_class')->end()
->scalarNode('payment_class')->end()
->scalarNode('order_line_class')->end()
->scalarNode('callback_class')->end()
;
return $treeBuilder;
}