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