X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/051cb57bce308ee38979c6ecca100a45d768d341..76b2ea7078f3a5dac1c2669d48dfe7551ebacaa2:/DependencyInjection/Configuration.php 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'])