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