Skip to content

Commit 38096cd

Browse files
authored
add support for amqps (ssl connections) (#23)
1 parent 078020b commit 38096cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RabbitMq/AMQPConnectionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function parseUrl(array $parameters)
119119

120120
$url = parse_url($parameters['url']);
121121

122-
if ($url === false || !isset($url['scheme']) || $url['scheme'] !== 'amqp') {
122+
if ($url === false || !isset($url['scheme']) || !in_array($url['scheme'], ['amqp', 'amqps'], true)) {
123123
throw new InvalidConfigurationException('Malformed parameter "url".');
124124
}
125125

0 commit comments

Comments
 (0)