Fix the config's path to workflow signature

- typo
- load the config's array instead of the path to the config
This commit is contained in:
Julien Fastré 2024-07-24 13:07:47 +02:00
parent d75607a1d2
commit 44226d6f7f
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 1 additions and 6 deletions

View File

@ -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');

View File

@ -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 = [];