Skip to content

Commit

Permalink
Refactor builder
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Pepper <[email protected]>
  • Loading branch information
kimpepper committed Oct 23, 2024
1 parent 2f4661d commit 16b664e
Show file tree
Hide file tree
Showing 283 changed files with 4,492 additions and 4,193 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Fixed
- Fixed upcomming PHP 8.4 deprecations
### Updated APIs
- Updated opensearch-php APIs to reflect [opensearch-api-specification@8255f1b](https://github.com/opensearch-project/opensearch-api-specification/commit/8255f1b3761a9d9653475aee18dee6acd904cf71)
- Updated opensearch-php APIs to reflect [opensearch-api-specification@cb320b5](https://github.com/opensearch-project/opensearch-api-specification/commit/cb320b5482551c4f28afa26ff0d1653332699722)
### Security
### Dependencies
Expand Down
2 changes: 2 additions & 0 deletions samples/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
$requestFactory = new \OpenSearch\RequestFactory();
$transport = new OpenSearch\Transport($guzzleClient, $requestFactory);

$client = (new \OpenSearch\ClientBuilder($transport))->build();

$client = new OpenSearch\Client($transport, $requestFactory, $httpFactory);
$info = $client->info();

Expand Down
665 changes: 319 additions & 346 deletions src/OpenSearch/Client.php

Large diffs are not rendered by default.

Loading

0 comments on commit 16b664e

Please sign in to comment.