@@ 373-381 (lines=9) @@ | ||
370 | ->end() |
|
371 | ->validate() |
|
372 | ->ifArray() |
|
373 | ->then(function ($value) { |
|
374 | foreach ($value as $connection) { |
|
375 | if (!isset($connection['name'])) { |
|
376 | throw new InvalidArgumentException('You should define connection name'); |
|
377 | } |
|
378 | } |
|
379 | ||
380 | return $value; |
|
381 | }) |
|
382 | ->end() |
|
383 | ->end() |
|
384 | ->variableNode('doctrine_mongodb') |
|
@@ 410-418 (lines=9) @@ | ||
407 | ->end() |
|
408 | ->validate() |
|
409 | ->ifArray() |
|
410 | ->then(function ($value) { |
|
411 | foreach ($value as $connection) { |
|
412 | if (!isset($connection['name'])) { |
|
413 | throw new InvalidArgumentException('You should define connection name'); |
|
414 | } |
|
415 | } |
|
416 | ||
417 | return $value; |
|
418 | }) |
|
419 | ->end() |
|
420 | ->end() |
|
421 | ->arrayNode('doctrine_migrations') |