We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aed4d74 + 186d5e8 commit 10c3d6fCopy full SHA for 10c3d6f
DependencyInjection/Configuration.php
@@ -92,7 +92,13 @@ public function getConfigTreeBuilder()
92
->prototype('scalar')->end()
93
->end()
94
->scalarNode('from_email')->end() // swift_mailer and native_mailer
95
- ->scalarNode('to_email')->end() // swift_mailer and native_mailer
+ ->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
102
->scalarNode('subject')->end() // swift_mailer and native_mailer
103
->arrayNode('email_prototype') // swift_mailer
104
->canBeUnset()
0 commit comments