Skip to content

Commit

Permalink
Merge pull request #199 from Soullivaneuh/config-improve
Browse files Browse the repository at this point in the history
Improve true/false/null default values on configuration
  • Loading branch information
soullivaneuh committed Jun 9, 2015
2 parents 271c3cb + 296daf5 commit f7f28af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ public function getConfigTreeBuilder()
->addDefaultsIfNotSet()
->children()
->scalarNode('handler')->defaultValue('sonata.block.cache.handler.default')->end()
->booleanNode('listener')->defaultValue(true)->end()
->booleanNode('listener')->defaultTrue()->end()
->end()
->end()
->arrayNode('templates')
->addDefaultsIfNotSet()
->children()
->scalarNode('block_base')->defaultValue(null)->end()
->scalarNode('block_container')->defaultValue(null)->end()
->scalarNode('block_base')->defaultNull()->end()
->scalarNode('block_container')->defaultNull()->end()
->end()
->end()

Expand Down Expand Up @@ -142,8 +142,8 @@ public function getConfigTreeBuilder()
->end()
->arrayNode('exception')
->children()
->scalarNode('filter') ->defaultValue(null)->end()
->scalarNode('renderer')->defaultValue(null)->end()
->scalarNode('filter') ->defaultNull()->end()
->scalarNode('renderer')->defaultNull()->end()
->end()
->end()
->end()
Expand Down

0 comments on commit f7f28af

Please sign in to comment.