@@ 191-195 (lines=5) @@ | ||
188 | 'name' => $name, |
|
189 | ]); |
|
190 | ||
191 | if (isset($index['client'])) { |
|
192 | $client = $this->getClient($index['client']); |
|
193 | ||
194 | $indexDef->setFactory([$client, 'getIndex']); |
|
195 | } |
|
196 | ||
197 | $container->setDefinition($indexId, $indexDef); |
|
198 | $reference = new Reference($indexId); |
|
@@ 254-257 (lines=4) @@ | ||
251 | 'name' => $name, |
|
252 | )); |
|
253 | ||
254 | if (isset($indexTemplate['client'])) { |
|
255 | $client = $this->getClient($indexTemplate['client']); |
|
256 | $indexDef->setFactory([$client, 'getIndexTemplate']); |
|
257 | } |
|
258 | ||
259 | $container->setDefinition($indexId, $indexDef); |
|
260 | $reference = new Reference($indexId); |