@@ -113,7 +113,7 @@ public function load(array $configs, ContainerBuilder $container)
113113 ));
114114
115115 if (!empty ($ config ['profile ' ])) {
116- $ this ->loadProfile ($ config ['profile ' ], $ container , $ loader, $ config [ ' db_driver ' ] );
116+ $ this ->loadProfile ($ config ['profile ' ], $ container , $ loader );
117117 }
118118
119119 if (!empty ($ config ['registration ' ])) {
@@ -189,20 +189,11 @@ protected function remapParametersNamespaces(array $config, ContainerBuilder $co
189189 * @param array $config
190190 * @param ContainerBuilder $container
191191 * @param XmlFileLoader $loader
192- * @param string $dbDriver
193192 */
194- private function loadProfile (array $ config , ContainerBuilder $ container , XmlFileLoader $ loader, $ dbDriver )
193+ private function loadProfile (array $ config , ContainerBuilder $ container , XmlFileLoader $ loader )
195194 {
196195 $ loader ->load ('profile.xml ' );
197196
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-
206197 $ this ->remapParametersNamespaces ($ config , $ container , array (
207198 'form ' => 'fos_user.profile.form.%s ' ,
208199 ));
0 commit comments