getRootNode(); $rootNode ->children() ->arrayNode('request_schema') ->children() ->arrayNode('callback') ->children() ->arrayNode('supports') ->arrayPrototype() ->children() ->scalarNode('type')->isRequired()->end() ->arrayNode('params') ->isRequired()->scalarPrototype()->end() ->end() ->end() ->end() ->end() ->scalarNode('serializer') ->defaultValue('retail_crm_service.symfony_serializer.adapter') ->end() ->end() ->end() ->arrayNode('client') ->children() ->arrayNode('supports') ->scalarPrototype()->end() ->end() ->scalarNode('serializer') ->defaultValue('retail_crm_service.symfony_serializer.adapter') ->end() ->end() ->end() ->end() ->end() ->end(); return $treeBuilder; } }