Skip to content

Commit

Permalink
Merge pull request #15 from ruudk/patch-4
Browse files Browse the repository at this point in the history
Use configuration defaults when nothing is given
  • Loading branch information
Michel Salib committed Oct 25, 2012
2 parents c2501da + 997824e commit 79dbb7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DependencyInjection/Configuration.php
Expand Up @@ -21,6 +21,7 @@ public function getConfigTreeBuilder()
$rootNode = $treeBuilder->root('bcc_resque');

$rootNode
->addDefaultsIfNotSet()
->children()
->scalarNode('vendor_dir')
->defaultValue('%kernel.root_dir%/../vendor')
Expand All @@ -34,6 +35,7 @@ public function getConfigTreeBuilder()
->end()
->arrayNode('redis')
->info('Redis configuration')
->addDefaultsIfNotSet()
->children()
->scalarNode('host')
->defaultValue('localhost')
Expand Down

0 comments on commit 79dbb7e

Please sign in to comment.