Skip to content

Shorthand client configuration doesn't allow scheme to be specified #7

Closed
@mriccid

Description

@mriccid

When instantiating the feature requester using the shorthand options syntax (i.e. an options array rather than a ClientInterface instance) it's not possible to specify the scheme. This means that for those who require a TLS connection they must instantiate a Predis client to pass in.

Would it be possible to allow the scheme to be provided in the options array, and default to TCP if it's empty? This seems like a small change that would make it much simpler to configure this feature requester when using TLS.

I was imagining it would be as simple as this:

"scheme" => $options['redis_scheme'] ?? "tcp"

Note: I wasn't sure on what was required in the ticket, so let me know if you need me to provide more information. I'm also unsure of what the expectations are for pull requests in this repository, but I would be happy to make this change myself and create a pull request with some guidance on how to contribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions