Skip to content

Commit 10c3d6f

Browse files
committed
Merge pull request #20 from phansys/master
Allowed array of emails for "to_email" parameter.
2 parents aed4d74 + 186d5e8 commit 10c3d6f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ public function getConfigTreeBuilder()
9292
->prototype('scalar')->end()
9393
->end()
9494
->scalarNode('from_email')->end() // swift_mailer and native_mailer
95-
->scalarNode('to_email')->end() // swift_mailer and native_mailer
95+
->arrayNode('to_email') // swift_mailer and native_mailer
96+
->prototype('scalar')->end()
97+
->beforeNormalization()
98+
->ifString()
99+
->then(function($v) { return array($v); })
100+
->end()
101+
->end()
96102
->scalarNode('subject')->end() // swift_mailer and native_mailer
97103
->arrayNode('email_prototype') // swift_mailer
98104
->canBeUnset()

0 commit comments

Comments
 (0)