From b65528125532463c9864fc917c5fed049152391d Mon Sep 17 00:00:00 2001 From: Linus Metzler Date: Mon, 22 Jan 2024 11:24:09 +0100 Subject: [PATCH] comment config options --- src/DependencyInjection/Configuration.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index f178e8e..d3598df 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -7,16 +7,8 @@ use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; -/** - * This is the class that validates and merges configuration from your app/config files. - * - * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/configuration.html} - */ class Configuration implements ConfigurationInterface { - /** - * {@inheritDoc} - */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder('valantic_elastica_bridge'); @@ -24,7 +16,7 @@ public function getConfigTreeBuilder() ->children() ->arrayNode('client') ->children() - ->scalarNode('dsn')->defaultNull()->end() + ->scalarNode('dsn')->defaultValue('http://localhost:9200')->info('The DSN to connect to the Elasticsearch cluster.')->end() ->booleanNode('should_add_sentry_breadcrumbs')->defaultFalse()->info('If true, breadcrumbs are added to Sentry for every request made to Elasticsearch via Elastica.')->end() ->end() ->end() @@ -32,7 +24,7 @@ public function getConfigTreeBuilder() ->addDefaultsIfNotSet() ->children() ->integerNode('lock_timeout')->defaultValue(5 * 60)->info('To prevent overlapping indexing jobs. Set to a value higher than the slowest index. Value is specified in seconds.')->end() - ->booleanNode('should_skip_failing_documents')->defaultValue(false)->info('If true, when a document fails to be indexed, it will be skipped and indexing continue with the next document. If false, indexing that index will be aborted.')->end() + ->booleanNode('should_skip_failing_documents')->defaultFalse()->info('If true, when a document fails to be indexed, it will be skipped and indexing continue with the next document. If false, indexing that index will be aborted.')->end() ->end() ->end() ->end()