Skip to content

Commit

Permalink
comment config options
Browse files Browse the repository at this point in the history
  • Loading branch information
limenet committed Jan 22, 2024
1 parent 2daf2c6 commit b655281
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,24 @@
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');
$treeBuilder->getRootNode()
->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()
->arrayNode('indexing')
->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()
Expand Down

0 comments on commit b655281

Please sign in to comment.