diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index d3b769c..eff4339 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -43,9 +43,17 @@ public function getConfigTreeBuilder() ->prototype('scalar') ->end() ->end() - ->scalarNode('from') + ->arrayNode('from') + ->beforeNormalization() + ->ifString() + ->then(function ($value) { + return array($value); + }) + ->end() ->isRequired() ->cannotBeEmpty() + ->prototype('scalar') + ->end() ->end() ->booleanNode('handle404') ->defaultValue(false)