Skip to content

symfony/messager: how to set-up Redis transport connection by the socket? #34682

@alebedev80

Description

@alebedev80

I need to set-up connection to the Redis service by the socket. How to set-up DSN?

By the code allows only DSN with valid url Connection.php:

if (false === $parsedUrl = parse_url($dsn)) {
    throw new InvalidArgumentException(sprintf('The given Redis DSN "%s" is invalid.', $dsn));
}

So DSN like "redis:///var/run/redis/redis.sock" is invalid.
Is there any reason for that or is it an architectural flaw?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureGood first issueIdeal for your first contribution! (some Symfony experience may be required)Help wantedIssues and PRs which are looking for volunteers to complete them.Messenger

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions