Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- namespace Bundle\PaymentGatewayBundle\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('payment_gateway');
- $rootNode
- ->children()
- ->arrayNode('config')
- ->children()
- ->arrayNode('default')
- ->children()
- ->scalarNode('apiLoginId')->isRequired()->cannotBeEmpty()->end()
- ->scalarNode('transactionKey')->isRequired()->cannotBeEmpty()->end()
- ->scalarNode('postUrl')->isRequired()->cannotBeEmpty()->end()
- ->end()
- ->end()
- ->end()
- ->end()
- ->end();
- return $treeBuilder;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement