<?php declare(strict_types=1);
/*
- * This file is part of the Rapsys PackBundle package.
+ * This file is part of the Rapsys UserBundle package.
*
* (c) Raphaël Gertz <symfony@rapsys.eu>
*
],
'context' => [],
'edit' => [
+ 'field' => [],
'route' => ['index' => 'index_url'],
'view' => [
'name' => '@RapsysUser/form/register.html.twig',
]
],
'register' => [
+ 'field' => [],
'route' => ['index' => 'index_url', 'confirm' => 'confirm_url'],
'view' => [
'name' => '@RapsysUser/form/register.html.twig',
->arrayNode('edit')
->addDefaultsIfNotSet()
->children()
+ ->arrayNode('field')
+ ->treatNullLike([])
+ ->defaultValue($defaults['edit']['field'])
+ ->variablePrototype()->end()
+ ->end()
->arrayNode('route')
->treatNullLike([])
->defaultValue($defaults['edit']['route'])
->arrayNode('register')
->addDefaultsIfNotSet()
->children()
+ ->arrayNode('field')
+ ->treatNullLike([])
+ ->defaultValue($defaults['register']['field'])
+ ->variablePrototype()->end()
+ ->end()
->arrayNode('route')
->treatNullLike([])
->defaultValue($defaults['register']['route'])