root('nelmio_api_doc') ->children() ->arrayNode('documentation') ->useAttributeAsKey('key') ->info('The documentation used as base') ->example(['info' => ['title' => 'My App']]) ->prototype('variable')->end() ->end() ->arrayNode('routes') ->info('Filter the routes that are documented') ->addDefaultsIfNotSet() ->children() ->arrayNode('path_patterns') ->example(['^/api', '^/api(?!/admin)']) ->prototype('scalar')->end() ->end() ->end() ->end() ->arrayNode('models') ->addDefaultsIfNotSet() ->children() ->booleanNode('use_jms')->defaultFalse()->end() ->end() ->end() ->end(); return $treeBuilder; } }