Repository: symfony/symfony
File: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php (PHP)

Code before:
                                        ->info('Unregisters custom attribute sanitizers.')
                                        ->acceptAndWrap(['string'])
                                        ->stringPrototype()->end()
                                    ->end()
                                    ->integerNode('max_input_length')
                                        ->info('The maximum length allowed for the sanitized input.')
                                        ->defaultValue(0)
                                    ->end()
                                ->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }

    private function addJsonStreamerSection(ArrayNodeDefinition $rootNode, callable $enableIfStandalone): void
    {
        $rootNode
            ->children()
                ->arrayNode('json_streamer')
                    ->info('JSON streamer configuration')
                    ->{$enableIfStandalone('symfony/json-streamer', StreamWriterInterface::class)}()
                ->end()
            ->end()
        ;
    }
}


Review comment (suggestion):
we still have to declare singular variants:
```suggestion
                        ->arrayNode('default_options', 'default_option')
```

Code after:
                                        ->info('Unregisters custom attribute sanitizers.')
                                        ->acceptAndWrap(['string'])
                                        ->stringPrototype()->end()
                                    ->end()
                                    ->integerNode('max_input_length')
                                        ->info('The maximum length allowed for the sanitized input.')
                                        ->defaultValue(0)
                                    ->end()
                                ->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }

    private function addJsonStreamerSection(ArrayNodeDefinition $rootNode, callable $enableIfStandalone): void
    {
        $rootNode
            ->children()
                ->arrayNode('json_streamer')
                    ->info('JSON streamer configuration')
                    ->{$enableIfStandalone('symfony/json-streamer', StreamWriterInterface::class)}()
                    ->children()
                        ->arrayNode('default_options')
                            ->addDefaultsIfNotSet()
                            ->ignoreExtraKeys(false)
                            ->children()
                                ->booleanNode('include_null_properties')
                                    ->info('Encode the properties with null value')
                                    ->defaultFalse()
                                ->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
}