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