From e2f3a2bc4d37351dd216f03625901a0f06190e67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 12 Aug 2021 08:09:05 +0200 Subject: [PATCH] Remove edit view form formType Add edit vied edit and reset formType Cleanup --- DependencyInjection/Configuration.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 01d6ee5..829a1aa 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -81,8 +81,9 @@ class Configuration implements ConfigurationInterface { 'edit' => [ 'route' => ['index' => 'index_url'], 'view' => [ - 'form' => 'Rapsys\UserBundle\Form\RegisterType', 'name' => '@RapsysUser/form/register.html.twig', + 'edit' => 'Rapsys\UserBundle\Form\RegisterType', + 'reset' => 'Rapsys\UserBundle\Form\LoginType', 'context' => [] ] ], @@ -111,8 +112,8 @@ class Configuration implements ConfigurationInterface { 'register' => [ 'route' => ['index' => 'index_url', 'confirm' => 'confirm_url'], 'view' => [ - 'form' => 'Rapsys\UserBundle\Form\RegisterType', 'name' => '@RapsysUser/form/register.html.twig', + 'form' => 'Rapsys\UserBundle\Form\RegisterType', 'context' => [] ], 'mail' => [ @@ -260,7 +261,8 @@ class Configuration implements ConfigurationInterface { ->arrayNode('view') ->addDefaultsIfNotSet() ->children() - ->scalarNode('form')->cannotBeEmpty()->defaultValue($defaults['edit']['view']['form'])->end() + ->scalarNode('edit')->cannotBeEmpty()->defaultValue($defaults['edit']['view']['edit'])->end() + ->scalarNode('reset')->cannotBeEmpty()->defaultValue($defaults['edit']['view']['reset'])->end() ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['edit']['view']['name'])->end() ->arrayNode('context') ->treatNullLike([]) -- 2.41.1