@@ 686-694 (lines=9) @@ | ||
683 | /** |
|
684 | * Loads the index manager. |
|
685 | **/ |
|
686 | private function loadIndexManager(ContainerBuilder $container): void |
|
687 | { |
|
688 | $indexRefs = array_map(function ($index) { |
|
689 | return $index['reference']; |
|
690 | }, $this->indexConfigs); |
|
691 | ||
692 | $managerDef = $container->getDefinition('fos_elastica.index_manager'); |
|
693 | $managerDef->replaceArgument(0, $indexRefs); |
|
694 | } |
|
695 | ||
696 | /** |
|
697 | * Load index template manager |
|
@@ 699-707 (lines=9) @@ | ||
696 | /** |
|
697 | * Load index template manager |
|
698 | */ |
|
699 | private function loadIndexTemplateManager(ContainerBuilder $container): void |
|
700 | { |
|
701 | $indexTemplateRefs = array_map(function ($index) { |
|
702 | return $index['reference']; |
|
703 | }, $this->indexTemplateConfigs); |
|
704 | ||
705 | $managerDef = $container->getDefinition('fos_elastica.index_template_manager'); |
|
706 | $managerDef->replaceArgument(0, $indexTemplateRefs); |
|
707 | } |
|
708 | ||
709 | /** |
|
710 | * Makes sure a specific driver has been loaded. |