]> Raphaël G. Git Repositories - userbundle/commitdiff
Fix Addess argument naming
authorRaphaël Gertz <git@rapsys.eu>
Wed, 29 Nov 2023 16:55:04 +0000 (17:55 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 29 Nov 2023 16:55:04 +0000 (17:55 +0100)
DependencyInjection/Configuration.php

index 719e95274b37220bf97834d32201f2fed0a34024..22c34f09a2ac3e0aca591eb4dc6143ed714fedc6 100644 (file)
@@ -73,8 +73,8 @@ class Configuration implements ConfigurationInterface {
                                'en_gb' => 'English'
                        ],
                        'contact' => [
-                               'title' => 'John Doe',
-                               'mail' => 'contact@example.com'
+                               'address' => 'contact@example.com',
+                               'name' => 'John Doe'
                        ],
                        'context' => [],
                        'edit' => [
@@ -236,8 +236,8 @@ class Configuration implements ConfigurationInterface {
                                        ->arrayNode('contact')
                                                ->addDefaultsIfNotSet()
                                                ->children()
-                                                       ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['contact']['title'])->end()
-                                                       ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end()
+                                                       ->scalarNode('address')->cannotBeEmpty()->defaultValue($defaults['contact']['address'])->end()
+                                                       ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['contact']['name'])->end()
                                                ->end()
                                        ->end()
                                        ->arrayNode('context')