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

Commit

Permalink
Merge pull request #32 from justinhilles/master
Browse files Browse the repository at this point in the history
Update Config to take both string and array of emails
  • Loading branch information
benji07 committed May 28, 2015
2 parents eebbff1 + 8fabd42 commit 0c48ce4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@ public function getConfigTreeBuilder()

$root
->children()
->scalarNode('to')
->arrayNode('to')
->beforeNormalization()
->ifString()
->then(function($value) { return array($value); })
->end()
->isRequired()
->cannotBeEmpty()
->prototype('scalar')
->end()
->end()
->scalarNode('from')
->isRequired()
Expand Down

0 comments on commit 0c48ce4

Please sign in to comment.