psr18-adapter/ruflin-elastica

0.1.2 2021-10-14 20:12 UTC

This package is auto-updated.

Last update: 2024-11-15 03:04:42 UTC


README

Install

Via Composer

composer require psr18-adapter/ruflin-elastica

Usage

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']]]

Licensing

MIT license. Please see License File for more information.