Skip to content

Commit d473e5f

Browse files
committed
Allowed array of emails for "to_email" parameter.
1 parent aed4d74 commit d473e5f

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('id' => $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)