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