Skip to content

Commit

Permalink
#82: disabled default error strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Clavreul committed Dec 2, 2019
1 parent f1cabd1 commit bc41eef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ public function getConfigTreeBuilder()
$definition = $rootNode->children();

// Default error strategy
$definition->scalarNode('default_error_strategy')->defaultValue(TaskConfiguration::STRATEGY_SKIP)->end();
$definition->enumNode('default_error_strategy')
->values([
TaskConfiguration::STRATEGY_SKIP,
TaskConfiguration::STRATEGY_STOP,
])
->isRequired();

$this->appendRootProcessConfigDefinition($definition);
$this->appendRootTransformersConfigDefinition($definition);
Expand All @@ -62,6 +67,7 @@ public function getConfigTreeBuilder()

/**
* "generic_transformers" root configuration
*
* @param NodeBuilder $definition
*/
protected function appendRootTransformersConfigDefinition(NodeBuilder $definition)
Expand All @@ -85,6 +91,7 @@ protected function appendRootTransformersConfigDefinition(NodeBuilder $definitio

/**
* Single transformer configuration
*
* @param NodeBuilder $definition
*/
protected function appendTransformerConfigDefinition(NodeBuilder $definition)
Expand Down

0 comments on commit bc41eef

Please sign in to comment.