mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-03 22:47:45 +00:00
Rename configuration parameter for document kinds
This commit is contained in:
parent
8209990437
commit
e2426ba1d8
@ -194,8 +194,8 @@ class ChillMainExtension extends Extension implements
|
||||
);
|
||||
|
||||
$container->setParameter(
|
||||
'chill_main.document_type_choices',
|
||||
$config['document_type_choices']
|
||||
'chill_main.id_document_kinds',
|
||||
$config['id_document_kinds']
|
||||
);
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||
|
@ -151,7 +151,7 @@ class Configuration implements ConfigurationInterface
|
||||
->append($this->addWidgetsConfiguration('homepage', $this->containerBuilder))
|
||||
->end() // end of widgets/children
|
||||
->end() // end of widgets
|
||||
->arrayNode('document_type_choices')->defaultValue([])
|
||||
->arrayNode('id_document_kinds')->defaultValue([])
|
||||
->arrayPrototype()
|
||||
->children()
|
||||
->scalarNode('key')->isRequired()->cannotBeEmpty()
|
||||
|
@ -27,7 +27,7 @@ class WorkflowSignatureMetadataType extends AbstractType
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$documentTypeChoices = $this->parameterBag->get('chill_main.document_type_choices');
|
||||
$documentTypeChoices = $this->parameterBag->get('chill_main.id_document_kinds');
|
||||
$locale = $this->requestStack->getCurrentRequest()->getLocale();
|
||||
|
||||
$choices = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user