Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Update Configuration.php
Browse files Browse the repository at this point in the history
Allow to overwrite value with "all bundles" (default behaviour) for given enviroment.

Eg. if `config.yml` has `bundles: [DemoBundle]` and in `config_dev.yml` I want to overwrite that to "all bundles" (default) with this PR merged I could do that with `bundles: ~`.
  • Loading branch information
loostro committed Mar 20, 2015
1 parent 4bfd74e commit 82d3f86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/Configuration.php
Expand Up @@ -107,6 +107,7 @@ private function addBundlesSection(ArrayNodeDefinition $rootNode)
->children()
->arrayNode('bundles')
->defaultValue($this->bundles)
->treatNullLike($this->bundles)
->prototype('scalar')
->validate()
->ifNotInArray($this->bundles)
Expand Down

0 comments on commit 82d3f86

Please sign in to comment.