Skip to content

Commit fe39322

Browse files
committed
CHORE: YES
1 parent ffd9963 commit fe39322

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

playground/php/src/search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
// }
9090
// var_dump($rules);
9191

92-
$configForIngestion = $config->setTransformationRegion('eu');
92+
$configForIngestion = $config->setFullHosts(['http://localhost:6689'])->setTransformationRegion('eu');
9393

9494
$clientWithTransformation = SearchClient::createWithConfig($configForIngestion);
9595

templates/php/api.mustache

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
109109
$ingestionConfig = IngestionConfig::create($config->getAppId(), $config->getAlgoliaApiKey(), $config->getTransformationRegion());
110110
111111
if ($hosts = $config->getHosts()) {
112-
$ingestionConfig = $ingestionConfig->setHosts($hosts);
112+
if ($config->getHasFullHosts()) {
113+
$ingestionConfig = $ingestionConfig->setFullHosts($hosts);
114+
} else {
115+
$ingestionConfig = $ingestionConfig->setHosts($hosts);
116+
}
113117
}
114118

115119
$client->ingestionTransporter = IngestionClient::createWithConfig($ingestionConfig);

0 commit comments

Comments
 (0)