options added to create person or parcours and to access global history

This commit is contained in:
2022-03-21 12:10:03 +01:00
parent ff5aeaae17
commit bdb07a3a05
6 changed files with 56 additions and 34 deletions

View File

@@ -59,6 +59,16 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
$config['allow_multiple_simultaneous_accompanying_periods']
);
$container->setParameter(
'chill_person.create_person_allowed',
$config['create_person_allowed']
);
$container->setParameter(
'chill_person.create_parcours_allowed',
$config['create_parcours_allowed']
);
// register all configuration in a unique parameter
$container->setParameter('chill_person', $config);

View File

@@ -62,6 +62,12 @@ class Configuration implements ConfigurationInterface
->end() // children for 'validation', parent = validation
->end() //validation, parent = children of root
->end() // children of root, parent = root
->booleanNode('create_person_allowed')
->defaultTrue()
->end()
->booleanNode('create_parcours_allowed')
->defaultTrue()
->end()
->arrayNode('person_fields')
->canBeDisabled()
->children()