@@ 246-249 (lines=4) @@ | ||
243 | 'name' => $name, |
|
244 | ]); |
|
245 | ||
246 | if (isset($indexTemplate['client'])) { |
|
247 | $client = $this->getClient($indexTemplate['client']); |
|
248 | $indexDef->setFactory([$client, 'getIndexTemplate']); |
|
249 | } |
|
250 | ||
251 | $container->setDefinition($indexId, $indexDef); |
|
252 | $reference = new Reference($indexId); |
|
@@ 185-189 (lines=5) @@ | ||
182 | 'name' => $name, |
|
183 | ]); |
|
184 | ||
185 | if (isset($index['client'])) { |
|
186 | $client = $this->getClient($index['client']); |
|
187 | ||
188 | $indexDef->setFactory([$client, 'getIndex']); |
|
189 | } |
|
190 | ||
191 | $container->setDefinition($indexId, $indexDef); |
|
192 | $reference = new Reference($indexId); |