From 44226d6f7f28e134ce31952a56c7348ffd839189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 24 Jul 2024 13:07:47 +0200 Subject: [PATCH] Fix the config's path to workflow signature - typo - load the config's array instead of the path to the config --- .../DependencyInjection/ChillMainExtension.php | 5 ----- .../ChillMainBundle/Form/WorkflowSignatureMetadataType.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php index 66fbae633..4dde2076c 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php @@ -193,11 +193,6 @@ class ChillMainExtension extends Extension implements [] ); - /* $container->setParameter( - 'chill_main.workflow_signatures.base_signer.document_kinds', - $config['workflow_signature']['base_signer']['document_kinds'] - );*/ - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config')); $loader->load('services.yaml'); $loader->load('services/doctrine.yaml'); diff --git a/src/Bundle/ChillMainBundle/Form/WorkflowSignatureMetadataType.php b/src/Bundle/ChillMainBundle/Form/WorkflowSignatureMetadataType.php index a23164784..114a462f6 100644 --- a/src/Bundle/ChillMainBundle/Form/WorkflowSignatureMetadataType.php +++ b/src/Bundle/ChillMainBundle/Form/WorkflowSignatureMetadataType.php @@ -25,7 +25,7 @@ class WorkflowSignatureMetadataType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options): void { - $documentTypeChoices = $this->parameterBag->get('chill_main.workflow_signatures.base_signer.document_kinds'); + $documentTypeChoices = $this->parameterBag->get('chill_main')['workflow_signature']['base_signer']['document_kinds']; $choices = [];