From 76b2ea7078f3a5dac1c2669d48dfe7551ebacaa2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sat, 28 Aug 2021 11:03:12 +0200 Subject: [PATCH] Add new field configuration entry --- DependencyInjection/Configuration.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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']) -- 2.41.1