]> Raphaƫl G. Git Repositories - userbundle/blobdiff - DependencyInjection/Configuration.php
Update mail address
[userbundle] / DependencyInjection / Configuration.php
index 81ec927c74113e6c03003765d3fa3997c3109cc3..efc8a686f5638f5645aa0addad429f1a42498425 100644 (file)
@@ -22,11 +22,11 @@ class Configuration implements ConfigurationInterface {
                $defaults = [
                        'class' => [
                                'group' => 'Rapsys\\UserBundle\\Entity\\Group',
-                               'title' => 'Rapsys\\UserBundle\\Entity\\Title',
+                               'civility' => 'Rapsys\\UserBundle\\Entity\\Civility',
                                'user' => 'Rapsys\\UserBundle\\Entity\\User'
                        ],
                        'default' => [
-                               'title' => 'Mister',
+                               'civility' => 'Mister',
                                'group' => [ 'User' ]
                        ],
                        'route' => [
@@ -54,10 +54,10 @@ class Configuration implements ConfigurationInterface {
                        'translate' => [],
                        'locales' => '%kernel.translator.fallbacks%',
                        'languages' => [
-                               'en' => 'English'
+                               'en-gb' => 'English'
                        ],
                        'contact' => [
-                               'name' => 'John Doe',
+                               'title' => 'John Doe',
                                'mail' => 'contact@example.com'
                        ],
                        'login' => [
@@ -128,14 +128,14 @@ class Configuration implements ConfigurationInterface {
                                                ->addDefaultsIfNotSet()
                                                ->children()
                                                        ->scalarNode('group')->cannotBeEmpty()->defaultValue($defaults['class']['group'])->end()
-                                                       ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['class']['title'])->end()
+                                                       ->scalarNode('civility')->cannotBeEmpty()->defaultValue($defaults['class']['civility'])->end()
                                                        ->scalarNode('user')->cannotBeEmpty()->defaultValue($defaults['class']['user'])->end()
                                                ->end()
                                        ->end()
                                        ->arrayNode('default')
                                                ->addDefaultsIfNotSet()
                                                ->children()
-                                                       ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['default']['title'])->end()
+                                                       ->scalarNode('civility')->cannotBeEmpty()->defaultValue($defaults['default']['civility'])->end()
                                                        ->arrayNode('group')
                                                                ->treatNullLike(array())
                                                                ->defaultValue($defaults['default']['group'])
@@ -217,7 +217,7 @@ class Configuration implements ConfigurationInterface {
                                        ->arrayNode('contact')
                                                ->addDefaultsIfNotSet()
                                                ->children()
-                                                       ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['contact']['name'])->end()
+                                                       ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['contact']['title'])->end()
                                                        ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end()
                                                ->end()
                                        ->end()