File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
tests/DependencyInjection Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 12
12
use Symfony \Component \Config \Definition \ConfigurationInterface ;
13
13
14
14
use function count ;
15
+ use function explode ;
15
16
use function in_array ;
16
17
use function is_array ;
17
18
use function is_string ;
@@ -428,7 +429,20 @@ private function addConnectionsSection(ArrayNodeDefinition $rootNode): void
428
429
->end ()
429
430
->end ()
430
431
->arrayNode ('extraOptions ' )
431
- ->prototype ('variable ' )->end ()
432
+ ->children ()
433
+ ->scalarNode ('mongocryptdURI ' )->end ()
434
+ ->booleanNode ('mongocryptdBypassSpawn ' )->end ()
435
+ ->scalarNode ('mongocryptdSpawnPath ' )->end ()
436
+ ->arrayNode ('mongocryptdSpawnArgs ' )
437
+ ->beforeNormalization ()
438
+ ->ifString ()
439
+ ->then (static fn ($ v ) => explode (' ' , $ v ))
440
+ ->end ()
441
+ ->prototype ('scalar ' )->cannotBeEmpty ()->end ()
442
+ ->end ()
443
+ ->scalarNode ('cryptSharedLibPath ' )->end ()
444
+ ->booleanNode ('cryptSharedLibRequired ' )->end ()
445
+ ->end ()
432
446
->end ()
433
447
->booleanNode ('bypassQueryAnalysis ' )->end ()
434
448
->arrayNode ('tlsOptions ' )
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ public function testFullConfiguration(array $config): void
257
257
'mongocryptdURI ' => 'mongodb://localhost:27020 ' ,
258
258
'mongocryptdBypassSpawn ' => true ,
259
259
'mongocryptdSpawnPath ' => '%kernel.project_dir%/bin/mongocryptd ' ,
260
- 'mongocryptdSpawnArgs ' => '--pidfilepath=%kernel.project_dir%/var/mongocryptd.pid --idleShutdownTimeoutSecs=60 ' ,
260
+ 'mongocryptdSpawnArgs ' => [ '--pidfilepath=%kernel.project_dir%/var/mongocryptd.pid ' , ' --idleShutdownTimeoutSecs=60 '] ,
261
261
'cryptSharedLibPath ' => '%kernel.project_dir%/bin/mongo_crypt_v1.dylib ' ,
262
262
'cryptSharedLibRequired ' => true ,
263
263
],
Original file line number Diff line number Diff line change @@ -130,7 +130,9 @@ doctrine_mongodb:
130
130
mongocryptdURI : ' mongodb://localhost:27020'
131
131
mongocryptdBypassSpawn : true
132
132
mongocryptdSpawnPath : ' %kernel.project_dir%/bin/mongocryptd'
133
- mongocryptdSpawnArgs : ' --pidfilepath=%kernel.project_dir%/var/mongocryptd.pid --idleShutdownTimeoutSecs=60'
133
+ mongocryptdSpawnArgs :
134
+ - ' --pidfilepath=%kernel.project_dir%/var/mongocryptd.pid'
135
+ - ' --idleShutdownTimeoutSecs=60'
134
136
cryptSharedLibPath : ' %kernel.project_dir%/bin/mongo_crypt_v1.dylib'
135
137
cryptSharedLibRequired : true
136
138
You can’t perform that action at this time.
0 commit comments