mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-04 23:09:50 +00:00
Add configuration for signature document types
This commit is contained in:
parent
57a07af3db
commit
8f358112b1
@ -193,6 +193,11 @@ class ChillMainExtension extends Extension implements
|
|||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$container->setParameter(
|
||||||
|
'chill_main.document_type_choices',
|
||||||
|
$config['document_type_choices']
|
||||||
|
);
|
||||||
|
|
||||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||||
$loader->load('services.yaml');
|
$loader->load('services.yaml');
|
||||||
$loader->load('services/doctrine.yaml');
|
$loader->load('services/doctrine.yaml');
|
||||||
|
@ -151,6 +151,28 @@ class Configuration implements ConfigurationInterface
|
|||||||
->append($this->addWidgetsConfiguration('homepage', $this->containerBuilder))
|
->append($this->addWidgetsConfiguration('homepage', $this->containerBuilder))
|
||||||
->end() // end of widgets/children
|
->end() // end of widgets/children
|
||||||
->end() // end of widgets
|
->end() // end of widgets
|
||||||
|
->arrayNode('document_type_choices')->defaultValue([])
|
||||||
|
->arrayPrototype()
|
||||||
|
->children()
|
||||||
|
->scalarNode('key')->isRequired()->cannotBeEmpty()
|
||||||
|
->info('the key stored in database')
|
||||||
|
->example('id_card')
|
||||||
|
->end()
|
||||||
|
->arrayNode('labels')->isRequired()->requiresAtLeastOneElement()
|
||||||
|
->arrayPrototype()
|
||||||
|
->children()
|
||||||
|
->scalarNode('lang')->isRequired()->cannotBeEmpty()
|
||||||
|
->example('fr')
|
||||||
|
->end()
|
||||||
|
->scalarNode('label')->isRequired()->cannotBeEmpty()
|
||||||
|
->example('Carte de séjour')
|
||||||
|
->end()
|
||||||
|
->end()
|
||||||
|
->end()
|
||||||
|
->end()
|
||||||
|
->end()
|
||||||
|
->end()
|
||||||
|
->end() //end of document types
|
||||||
->arrayNode('cruds')
|
->arrayNode('cruds')
|
||||||
->defaultValue([])
|
->defaultValue([])
|
||||||
->arrayPrototype()
|
->arrayPrototype()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user