@@ -113,7 +113,7 @@ public function load(array $configs, ContainerBuilder $container)
113
113
));
114
114
115
115
if (!empty ($ config ['profile ' ])) {
116
- $ this ->loadProfile ($ config ['profile ' ], $ container , $ loader, $ config [ ' db_driver ' ] );
116
+ $ this ->loadProfile ($ config ['profile ' ], $ container , $ loader );
117
117
}
118
118
119
119
if (!empty ($ config ['registration ' ])) {
@@ -189,20 +189,11 @@ protected function remapParametersNamespaces(array $config, ContainerBuilder $co
189
189
* @param array $config
190
190
* @param ContainerBuilder $container
191
191
* @param XmlFileLoader $loader
192
- * @param string $dbDriver
193
192
*/
194
- private function loadProfile (array $ config , ContainerBuilder $ container , XmlFileLoader $ loader, $ dbDriver )
193
+ private function loadProfile (array $ config , ContainerBuilder $ container , XmlFileLoader $ loader )
195
194
{
196
195
$ loader ->load ('profile.xml ' );
197
196
198
- if ($ config ['email_update_confirmation ' ]['enabled ' ]) {
199
- if ('custom ' !== $ dbDriver && isset (self ::$ doctrineDrivers [$ dbDriver ])) {
200
- $ loader ->load ('profile_email_update.xml ' );
201
- }
202
- $ container ->setParameter ('fos_user.email_update_confirmation.template ' , $ config ['email_update_confirmation ' ]['email_template ' ]);
203
- $ container ->setParameter ('fos_user.email_update_confirmation.cypher_method ' , $ config ['email_update_confirmation ' ]['cypher_method ' ]);
204
- }
205
-
206
197
$ this ->remapParametersNamespaces ($ config , $ container , array (
207
198
'form ' => 'fos_user.profile.form.%s ' ,
208
199
));
0 commit comments