|
@@ 319-321 (lines=3) @@
|
| 316 |
|
|
| 317 |
|
if (isset($config['type'])) { |
| 318 |
|
if ('mongodb' === $config['type']) { |
| 319 |
|
if (false === class_exists(Utility::getLibraryClass('Persister\MongoDb\Persister'))) { |
| 320 |
|
throw new InvalidConfigurationException(sprintf('The MongoDB persister library class was not found for "as3_modlr.persisters.%s.type" - was the library installed?', $name)); |
| 321 |
|
} |
| 322 |
|
if (!isset($config['parameters']['host'])) { |
| 323 |
|
throw new InvalidConfigurationException(sprintf('The MongoDB persister requires a value for "as3_modlr.persisters.%s.parameters.host"', $name)); |
| 324 |
|
} |
|
@@ 351-353 (lines=3) @@
|
| 348 |
|
|
| 349 |
|
if (isset($config['type'])) { |
| 350 |
|
if ('elastic' === $config['type']) { |
| 351 |
|
if (false === class_exists(Utility::getLibraryClass('Search\Elastic\Client'))) { |
| 352 |
|
throw new InvalidConfigurationException(sprintf('The Elastic persister library class was not found for "as3_modlr.search_clients.%s.type" - was the library installed?', $name)); |
| 353 |
|
} |
| 354 |
|
} else { |
| 355 |
|
throw new InvalidConfigurationException(sprintf('An unrecognized search type was set for "as3_modlr.search_clients.%s.type"', $name)); |
| 356 |
|
} |