Skip to content

Commit

Permalink
Allow options to be passed via Symfony config, not just dsn
Browse files Browse the repository at this point in the history
  • Loading branch information
Paweł Niedzielski authored and makasim committed Nov 30, 2018
1 parent 0534e58 commit 77a5965
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion QueueInteropTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public function createSender(string $dsn, array $options): TransportInterface

public function createTransport(string $dsn, array $options): TransportInterface
{
[$contextManager, $options] = $this->parseDsn($dsn);
[$contextManager, $dsnOptions] = $this->parseDsn($dsn);

$options = array_merge($dsnOptions, $options);

return new QueueInteropTransport(
$this->serializer,
Expand Down

0 comments on commit 77a5965

Please sign in to comment.