@@ 534-539 (lines=6) @@ | ||
531 | $providerDef->replaceArgument(3, $baseConfig); |
|
532 | ||
533 | break; |
|
534 | case 'mongodb': |
|
535 | $providerDef = new ChildDefinition('fos_elastica.pager_provider.prototype.'.$driver); |
|
536 | $providerDef->replaceArgument(2, $typeConfig['model']); |
|
537 | $providerDef->replaceArgument(3, $baseConfig); |
|
538 | ||
539 | break; |
|
540 | case 'phpcr': |
|
541 | $providerDef = new ChildDefinition('fos_elastica.pager_provider.prototype.'.$driver); |
|
542 | $providerDef->replaceArgument(2, $typeConfig['model']); |
|
@@ 540-545 (lines=6) @@ | ||
537 | $providerDef->replaceArgument(3, $baseConfig); |
|
538 | ||
539 | break; |
|
540 | case 'phpcr': |
|
541 | $providerDef = new ChildDefinition('fos_elastica.pager_provider.prototype.'.$driver); |
|
542 | $providerDef->replaceArgument(2, $typeConfig['model']); |
|
543 | $providerDef->replaceArgument(3, $baseConfig); |
|
544 | ||
545 | break; |
|
546 | default: |
|
547 | throw new \LogicException(sprintf('The pager provider for driver "%s" does not exist.', $driver)); |
|
548 | } |