Skip to content

Commit e28616a

Browse files
committed
Add comment on encryptedFieldsMap JSON decoding
1 parent c49d20d commit e28616a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ private function addConnectionsSection(ArrayNodeDefinition $rootNode): void
400400
->useAttributeAsKey('name', false)
401401
->beforeNormalization()
402402
->always(static function ($v) {
403+
// Create a PHP array representation of the Extended BSON that is later
404+
// converted to JSON string to create a BSON document from this JSON.
405+
// This lets the DI dumper transform the parameters in the string and dump it.
403406
if (is_string($v)) {
404407
return json_decode($v, true, 512, JSON_THROW_ON_ERROR);
405408
}

0 commit comments

Comments
 (0)