@@ 523-528 (lines=6) @@ | ||
520 | $providerDef->replaceArgument(3, $baseConfig); |
|
521 | ||
522 | break; |
|
523 | case 'mongodb': |
|
524 | $providerDef = new ChildDefinition('fos_elastica.pager_provider.prototype.'.$driver); |
|
525 | $providerDef->replaceArgument(2, $typeConfig['model']); |
|
526 | $providerDef->replaceArgument(3, $baseConfig); |
|
527 | ||
528 | break; |
|
529 | case 'phpcr': |
|
530 | $providerDef = new ChildDefinition('fos_elastica.pager_provider.prototype.'.$driver); |
|
531 | $providerDef->replaceArgument(2, $typeConfig['model']); |
|
@@ 529-534 (lines=6) @@ | ||
526 | $providerDef->replaceArgument(3, $baseConfig); |
|
527 | ||
528 | break; |
|
529 | case 'phpcr': |
|
530 | $providerDef = new ChildDefinition('fos_elastica.pager_provider.prototype.'.$driver); |
|
531 | $providerDef->replaceArgument(2, $typeConfig['model']); |
|
532 | $providerDef->replaceArgument(3, $baseConfig); |
|
533 | ||
534 | break; |
|
535 | default: |
|
536 | throw new \LogicException(sprintf('The pager provider for driver "%s" does not exist.', $driver)); |
|
537 | } |