private function loadIndexManager(ContainerBuilder $container)
    {
        $indexRefs = array_map(function ($index) {
            return $index['reference'];
        }, $this->indexConfigs);

        $managerDef = $container->getDefinition('fos_elastica.index_manager');
        $managerDef->replaceArgument(0, $indexRefs);
    }
private function loadIndexManager(ContainerBuilder $container)
    {
        $indexRefs = array_map(function ($index) {
            return $index['reference'];
        }, $this->indexConfigs);

        $managerDef = $container->getDefinition('fos_elastica.index_manager');
        $managerDef->replaceArgument(0, $indexRefs);
    }
private function loadIndexManager ( ContainerBuilder $ container ) { $ indexRefs = array_map ( function ( $ index ) { return $ index [ 'reference' ] ; } , $ this -> indexConfigs ) ; $ managerDef = $ container -> getDefinition ( 'fos_elastica.index_manager' ) ; $ managerDef -> replaceArgument ( 0 , $ indexRefs ) ; }
Loads the index manager.

@param ContainerBuilder $container
Loads the index manager .