Via Composer
composer require psr18-adapter/ruflin-elastica
This would be how a service configuration would look like when using symfony/dependency-injection:
services:
Psr18Adapter\Ruflin\Elastica\RuflinPsr18Transport:
autowire: true
arguments:
$client: '@httplug.client.es'
Elastica\Connection:
arguments:
- { host: "%es_host%", port: "%es_port%" }
calls:
- [setTransport, ['@Psr18Adapter\Ruflin\Elastica\RuflinPsr18Transport']]
Elastica\Client:
calls:
- [setConnections, [['@Elastica\Connection']]]
MIT license. Please see License File for more information.