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