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.
1 parent aed4d74 commit d473e5fCopy full SHA for d473e5f
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('id' => $v); })
100
+ ->end()
101
102
->scalarNode('subject')->end() // swift_mailer and native_mailer
103
->arrayNode('email_prototype') // swift_mailer
104
->canBeUnset()
0 commit comments