]> Raphaël G. Git Repositories - userbundle/commitdiff
Rename title in civility
authorRaphaël Gertz <git@rapsys.eu>
Tue, 23 Feb 2021 23:09:58 +0000 (00:09 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 23 Feb 2021 23:09:58 +0000 (00:09 +0100)
DependencyInjection/Configuration.php

index 81ec927c74113e6c03003765d3fa3997c3109cc3..ece6c297dea6e09b9cd941b8c287f7da07e6da6e 100644 (file)
@@ -22,11 +22,11 @@ class Configuration implements ConfigurationInterface {
                $defaults = [
                        'class' => [
                                'group' => 'Rapsys\\UserBundle\\Entity\\Group',
                $defaults = [
                        'class' => [
                                'group' => 'Rapsys\\UserBundle\\Entity\\Group',
-                               'title' => 'Rapsys\\UserBundle\\Entity\\Title',
+                               'civility' => 'Rapsys\\UserBundle\\Entity\\Civility',
                                'user' => 'Rapsys\\UserBundle\\Entity\\User'
                        ],
                        'default' => [
                                'user' => 'Rapsys\\UserBundle\\Entity\\User'
                        ],
                        'default' => [
-                               'title' => 'Mister',
+                               'civility' => 'Mister',
                                'group' => [ 'User' ]
                        ],
                        'route' => [
                                'group' => [ 'User' ]
                        ],
                        'route' => [
@@ -128,14 +128,14 @@ class Configuration implements ConfigurationInterface {
                                                ->addDefaultsIfNotSet()
                                                ->children()
                                                        ->scalarNode('group')->cannotBeEmpty()->defaultValue($defaults['class']['group'])->end()
                                                ->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('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'])
                                                        ->arrayNode('group')
                                                                ->treatNullLike(array())
                                                                ->defaultValue($defaults['default']['group'])