@@ 183-187 (lines=5) @@ | ||
180 | 'name' => $name, |
|
181 | ]); |
|
182 | ||
183 | if (isset($index['client'])) { |
|
184 | $client = $this->getClient($index['client']); |
|
185 | ||
186 | $indexDef->setFactory([$client, 'getIndex']); |
|
187 | } |
|
188 | ||
189 | $container->setDefinition($indexId, $indexDef); |
|
190 | $reference = new Reference($indexId); |
|
@@ 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); |