From: Raphaël Gertz Date: Sat, 28 Aug 2021 09:03:12 +0000 (+0200) Subject: Add new field configuration entry X-Git-Tag: 0.2.0~31 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/76b2ea7078f3a5dac1c2669d48dfe7551ebacaa2 Add new field configuration entry --- diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 829a1aa..ade173f 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -1,7 +1,7 @@ * @@ -79,6 +79,7 @@ class Configuration implements ConfigurationInterface { ], 'context' => [], 'edit' => [ + 'field' => [], 'route' => ['index' => 'index_url'], 'view' => [ 'name' => '@RapsysUser/form/register.html.twig', @@ -110,6 +111,7 @@ class Configuration implements ConfigurationInterface { ] ], 'register' => [ + 'field' => [], 'route' => ['index' => 'index_url', 'confirm' => 'confirm_url'], 'view' => [ 'name' => '@RapsysUser/form/register.html.twig', @@ -253,6 +255,11 @@ class Configuration implements ConfigurationInterface { ->arrayNode('edit') ->addDefaultsIfNotSet() ->children() + ->arrayNode('field') + ->treatNullLike([]) + ->defaultValue($defaults['edit']['field']) + ->variablePrototype()->end() + ->end() ->arrayNode('route') ->treatNullLike([]) ->defaultValue($defaults['edit']['route']) @@ -333,6 +340,11 @@ class Configuration implements ConfigurationInterface { ->arrayNode('register') ->addDefaultsIfNotSet() ->children() + ->arrayNode('field') + ->treatNullLike([]) + ->defaultValue($defaults['register']['field']) + ->variablePrototype()->end() + ->end() ->arrayNode('route') ->treatNullLike([]) ->defaultValue($defaults['register']['route'])