Skip to content

Releases: FriendsOfSymfony/FOSElasticaBundle

7.2.0

Choose a tag to compare

@XWB XWB released this 01 Jun 21:24
16ae7e8
  • Added Elasticsearch 9 and Elastica 9 support.
  • headers client config is now applied via Transport::setHeader() so it works uniformly across Guzzle, Symfony HTTP Client, and elastic-transport's bundled Curl client.
  • timeout client config is now translated to CURLOPT_TIMEOUT at runtime when the active transport client is elastic-transport's bundled Curl — Guzzle/Symfony HTTP Client keep consuming the original 'timeout' key as before.
  • Default config no longer injects 'headers' => [] / 'timeout' => 30 into http_client_options, which would otherwise break elastic-transport's bundled Curl client (PHP 8+ ValueError on unknown curl_setopt_array keys).
  • Deprecated the top-level headers and timeout client config. Move them into client_options — for Guzzle/Symfony HTTP Client use headers / timeout, for the bundled Curl client use CURLOPT_HTTPHEADER / CURLOPT_TIMEOUT.
  • Fix deprecated Symfony method call.
  • Instantiate custom repositories using the DI service locator.
  • Add compatibility with doctrine/doctrine-bundle 3.x, doctrine/phpcr-odm 3.x and Symfony 8.0 in highest-deps CI.
  • Raise minimum versions of doctrine/doctrine-bundle (^2.5), doctrine/orm (^2.17) and jms/serializer-bundle (^5.4) to fix lowest-deps CI.

7.1.0

Choose a tag to compare

@XWB XWB released this 24 Apr 11:03
58b607f
  • Added Symfony 8.0 support.
  • Added PHP 8.5 test coverage.
  • Dropped Symfony 7.1, 7.2 and 7.3 support.

7.0.0

Choose a tag to compare

@XWB XWB released this 20 Oct 20:32
32f7f98
  • Dropped support for PHP 7.4 and PHP 8.0.
  • Dropped support for Symfony 5.4.
  • [BC break] Method FOS\ElasticaBundle\Elastica\Client::request does not exist anymore. Please use FOS\ElasticaBundle\Elastica\Client::sendRequest.
  • [BC break] Method FOS\ElasticaBundle\Elastica\Client::getIndex now returns FOS\ElasticaBundle\Elastica\Index.
  • [BC break] Arguments for the service FOS\ElasticaBundle\Elastica\Client have changed. See definition of FOS\ElasticaBundle\Elastica\Client::__construct.
  • [BC break] Client configuration now reflects configuration of Elastica\Client.
  • [BC break] Index template configuration index_template option template is renamed to index_patterns and accepts array of strings.
  • [BC break] Arguments for the service FOS\ElasticaBundle\Elastica\Client (fos_elastica.client..) are now named, instead of indexed.
  • [BC break] Configuration options: host, port, url are no longer available and replaced with single hosts.
  • [BC break] Configuration options: proxy, auth_type, aws_*, ssl, curl, persistent, compression, connectTimeout are no longer available.
  • [BC break] Configuration connectionStrategy is renamed to connection_strategy.
  • [BC break] Event PostElasticaRequestEvent now operates with Psr\Http\Message\RequestInterface instead of Elastica\Request.
  • [BC break] Event ElasticaRequestExceptionEvent now operates with Psr\Http\Message\RequestInterface instead of Elastica\Request, and Elastic\Elasticsearch\Exception\ElasticsearchException instead of Elastica\Exception\ExceptionInterface.

Main change is the configuration of the bundle:

  • There are no connections level anymore.
  • Options host, port and url are replaced with option hosts, which accepts array.
  • SSL configuration is provided within client_config option.
  • Other client options are configurable in client_options.
  • Refer to new examples! Elastica HTTP client configuration

6.6.0

Choose a tag to compare

@XWB XWB released this 15 Mar 11:44
b69ad24
  • Added PreElasticaRequestEvent, PostElasticaRequestEvent and ElasticaRequestExceptionEvent for requests.
  • Made index template configuration compatible with Elasticsearch 6.

6.5.1

Choose a tag to compare

@XWB XWB released this 13 Feb 15:39
42adbc0
  • Replaced deprecated Symfony\Component\HttpKernel\DependencyInjection\Extension.

6.5.0

Choose a tag to compare

@XWB XWB released this 27 Jan 16:57
1759099
  • Added PHP 8.4 support.
  • Added doctrine/orm 3 support.
  • Dropped PHP 8.0 support.
  • Dropped Symfony 7.0 support.
  • Updated documentation.

6.4.0

Choose a tag to compare

@XWB XWB released this 13 May 08:02
b4f7147

What's Changed

New Contributors

Full Changelog: v6.3.1...v6.4.0

6.3.1

Choose a tag to compare

@XWB XWB released this 28 May 18:07
5dd16e0
  • Restored pagerfanta/pagerfanta dependency.

6.3.0

Choose a tag to compare

@XWB XWB released this 22 May 19:08
b2012b7
  • Removed Symfony 6.0 and 6.1 support.
  • Removed unused count from async persister.
  • Added PHP 8.2 support.
  • Normalize DateInterval to ISO 8601 string in model transformer.
  • Deprecated PostAsyncInsertObjectsEvent.
  • Added missing interfaces to TransformedFinder.
  • Fixed console logger behaviour when populating multiple indexes.
  • Show filtered object count during populate.

6.2.0

Choose a tag to compare

@XWB XWB released this 31 Aug 11:17
4a3e03f
  • Improved Symfony 6.1 support.
  • Added PHPStan integration.
  • Added support for aws_credential_provider.
  • Added BackedEnum support in ModelToElasticaAutoTransformer.
  • Fix: don't escape unicode in the query log.
  • Fixed index name for aliased index in CreateCommand.