Skip to content

Commit

Permalink
Issue in configuration tree, the validation for the parameter `param_…
Browse files Browse the repository at this point in the history
…fetch_listener` is set

in the `cache_dir` parameter.

Issue #513
  • Loading branch information
aferrandini committed Jul 29, 2013
1 parent 076a129 commit 7cd4cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Expand Up @@ -45,13 +45,13 @@ public function getConfigTreeBuilder()
->useAttributeAsKey('name')
->prototype('boolean')->end()
->end()
->scalarNode('param_fetcher_listener')->defaultFalse()->end()
->scalarNode('cache_dir')->cannotBeEmpty()->defaultValue('%kernel.cache_dir%/fos_rest')
->scalarNode('param_fetcher_listener')->defaultFalse()
->validate()
->ifNotInArray($this->forceOptionValues)
->thenInvalid('The param_fetcher_listener option does not support %s. Please choose one of '.json_encode($this->forceOptionValues))
->end()
->end()
->scalarNode('cache_dir')->cannotBeEmpty()->defaultValue('%kernel.cache_dir%/fos_rest')->end()
->scalarNode('allowed_methods_listener')->defaultFalse()->end()
->arrayNode('routing_loader')
->addDefaultsIfNotSet()
Expand Down

0 comments on commit 7cd4cf4

Please sign in to comment.