Skip to content

Allow to pass DSN to the Elastica\Client constructor #1640

@renanbr

Description

@renanbr

Currently I have to handle config options as separated keys in each environment my application is deployed (local, ci, staging, prod...). Things become hard when an environment required an option the other don't...

It could be cool if Elastica\Client's constructor becomes able to parse a single string.

new Elastica\Client('192.168.1.1:9200');
new Elastica\Client('https://user:p4ss@foo.com:9200/elastic;persistent=false;retryOnConflict=2');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions