@@ 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); |
|
@@ 244-247 (lines=4) @@ | ||
241 | 'name' => $name, |
|
242 | )); |
|
243 | ||
244 | if (isset($indexTemplate['client'])) { |
|
245 | $client = $this->getClient($indexTemplate['client']); |
|
246 | $indexDef->setFactory([$client, 'getIndexTemplate']); |
|
247 | } |
|
248 | ||
249 | $container->setDefinition($indexId, $indexDef); |
|
250 | $reference = new Reference($indexId); |