*/ final class Configuration implements ConfigurationInterface { public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('magdev_redmine'); $rootNode = $treeBuilder->getRootNode(); $rootNode->fixXmlConfig('connections') ->children() ->arrayNode('connections') ->useAttributeAsKey('name') ->normalizeKeys(false) ->arrayPrototype() ->children() ->scalarNode('url') ->isRequired() ->info('The URL of your Redmine instance') ->end() ->scalarNode('apikey') ->isRequired() ->info('Your Redmine API-Key') ->end() ->end() ->end() ->end() ->scalarNode('default_connection')->end() ; return $treeBuilder; } }