|
@@ 190-194 (lines=5) @@
|
| 187 |
|
'name' => $name, |
| 188 |
|
]); |
| 189 |
|
|
| 190 |
|
if (isset($index['client'])) { |
| 191 |
|
$client = $this->getClient($index['client']); |
| 192 |
|
|
| 193 |
|
$indexDef->setFactory([$client, 'getIndex']); |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
$container->setDefinition($indexId, $indexDef); |
| 197 |
|
$reference = new Reference($indexId); |
|
@@ 243-246 (lines=4) @@
|
| 240 |
|
'name' => $name, |
| 241 |
|
)); |
| 242 |
|
|
| 243 |
|
if (isset($indexTemplate['client'])) { |
| 244 |
|
$client = $this->getClient($indexTemplate['client']); |
| 245 |
|
$indexDef->setFactory([$client, 'getIndexTemplate']); |
| 246 |
|
} |
| 247 |
|
|
| 248 |
|
$container->setDefinition($indexId, $indexDef); |
| 249 |
|
$reference = new Reference($indexId); |