Skip to content

Commit edfad64

Browse files
RuslanZavackynicolas-grekas
authored andcommitted
[Messenger] Support rediss in transport bridge
1 parent 453ee02 commit edfad64

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisTransportFactoryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function testSupportsOnlyRedisTransports()
2727
$factory = new RedisTransportFactory();
2828

2929
$this->assertTrue($factory->supports('redis://localhost', []));
30+
$this->assertTrue($factory->supports('rediss://localhost', []));
3031
$this->assertFalse($factory->supports('sqs://localhost', []));
3132
$this->assertFalse($factory->supports('invalid-dsn', []));
3233
}

src/Symfony/Component/Messenger/Bridge/Redis/Transport/RedisTransportFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function createTransport(string $dsn, array $options, SerializerInterface
3030

3131
public function supports(string $dsn, array $options): bool
3232
{
33-
return 0 === strpos($dsn, 'redis://');
33+
return 0 === strpos($dsn, 'redis://') || 0 === strpos($dsn, 'rediss://');
3434
}
3535
}
3636

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy