Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Client factories for Guzzle and Symfony #287

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

kimpepper
Copy link
Collaborator

Description

#271 Added HTTP Client factories. This PR adds OpenSearch\Client. factories to simplify client creation.

It also:

  • Updates docs to use the factories
  • Removes Auto-discovery from docs, as there is no way to set the base_uri using that method

Issues Resolved

#257

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@kimpepper kimpepper merged commit f7022ac into opensearch-project:main Feb 6, 2025
43 checks passed
@kimpepper kimpepper deleted the client-factories branch February 6, 2025 11:16
@@ -4,6 +4,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [Unreleased]
### Added
- Added Guzzle and Symfony client factories.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added missing PR numbers in #290.

@@ -16,95 +16,50 @@ openseach-php removes the hard-coded dependency on the [Guzzle HTTP client](http

You can continue to use Guzzle, but will need to configure it as a PSR-18 HTTP Client.

### HTTP Client Auto-Discovery
### PSR-18 HTTP Client Interfaces
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TOC needed an update, did in #290.

@kimpepper kimpepper mentioned this pull request Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants