diff --git a/DependencyInjection/SpomkyLabsLexikJoseExtension.php b/DependencyInjection/SpomkyLabsLexikJoseExtension.php index f1cee19..d75cb60 100644 --- a/DependencyInjection/SpomkyLabsLexikJoseExtension.php +++ b/DependencyInjection/SpomkyLabsLexikJoseExtension.php @@ -45,7 +45,7 @@ public function load(array $configs, ContainerBuilder $container) $container->setParameter('lexik_jose_bridge.encoder.encryption.enabled', $config['encryption']['enabled']); if (true === $config['encryption']['enabled']) { - $container->setParameter('lexik_jose_bridge.encoder.encryption.key_index', $config['key_index']); + $container->setParameter('lexik_jose_bridge.encoder.encryption.key_index', $config['encryption']['key_index']); $container->setParameter('lexik_jose_bridge.encoder.encryption.key_encryption_algorithm', $config['encryption']['key_encryption_algorithm']); $container->setParameter('lexik_jose_bridge.encoder.encryption.content_encryption_algorithm', $config['encryption']['content_encryption_algorithm']); $this->loadEncryptionServices($container);