From 7707a0c04c6692eb5bee040569fd97c21392d3d2 Mon Sep 17 00:00:00 2001 From: Valentin Clavreul Date: Mon, 2 Dec 2019 16:28:23 +0100 Subject: [PATCH] #82: disabled default error strategy --- DependencyInjection/Configuration.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 2540810f..ac73e949 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -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); @@ -62,6 +67,7 @@ public function getConfigTreeBuilder() /** * "generic_transformers" root configuration + * * @param NodeBuilder $definition */ protected function appendRootTransformersConfigDefinition(NodeBuilder $definition) @@ -85,6 +91,7 @@ protected function appendRootTransformersConfigDefinition(NodeBuilder $definitio /** * Single transformer configuration + * * @param NodeBuilder $definition */ protected function appendTransformerConfigDefinition(NodeBuilder $definition)