Skip to content

Commit

Permalink
Merge pull request #27 from emodric/patch-3
Browse files Browse the repository at this point in the history
Use requiresAtLeastOneElement on array nodes
  • Loading branch information
andrerom authored Jan 16, 2018
2 parents a5b7bb2 + 2fdfabf commit 303b71f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ public function getConfigTreeBuilder()
->arrayNode('mappings')
->info('Configure mappings between mime-type and content type identifier')
->isRequired()
->cannotBeEmpty()
->requiresAtLeastOneElement()
->prototype('array')
->children()
->arrayNode('mime_types')
->isRequired()
->cannotBeEmpty()
->requiresAtLeastOneElement()
->prototype('scalar')->end()
->end()
->scalarNode('content_type_identifier')
Expand All @@ -99,7 +99,7 @@ public function getConfigTreeBuilder()
->children()
->arrayNode('mime_types')
->isRequired()
->cannotBeEmpty()
->requiresAtLeastOneElement()
->prototype('scalar')->end()
->end()
->scalarNode('content_type_identifier')
Expand Down

0 comments on commit 303b71f

Please sign in to comment.