Skip to content

[PROPOSAL] Un-deprecate the builder pattern #257

Closed
@dblock

Description

@dblock

What/Why

What are you proposing?

With the PSR work we deprecated the builder pattern.

https://github.com/opensearch-project/opensearch-php/blob/main/src/OpenSearch/ClientBuilder.php#L48

Do we have to? From the user perspective it seems easier to use and automatically detects the available Psr library. So why deprecate it? What are the downsides of the builder pattern? From the upsides I see less code to write to accomplish the same thing.

What users have asked for this feature?

Users that like to write less code.

What problems are you trying to solve?

Give users a way to use the client simply.

Any remaining open questions?

Would love to hear from @kimpepper on this topic before we release 2.4.0 via #244.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions