8000 Merge branch '5.3' into 5.4 · symfony/symfony@c6c8020 · GitHub
[go: up one dir, main page]

Skip to content

Commit c6c8020

Browse files
Merge branch '5.3' into 5.4
* 5.3: [Messenger] Support rediss in transport bridge
2 parents 5725f90 + 3cf8234 commit c6c8020

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)
0