10000 bug #27197 [Messenger] Fix AMQP Transport factory & TransportFactoryI… · sroze/symfony@ef2c091 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef2c091

Browse files
committed
bug symfony#27197 [Messenger] Fix AMQP Transport factory & TransportFactoryInterface (ogizanagi)
This PR was merged into the 4.1 branch. Discussion ---------- [Messenger] Fix AMQP Transport factory & TransportFactoryInterface | Q | A | ------------- | --- | Branch? | 4.1 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | symfony#27164 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Seems like we did review a bit fast here 😅 Commits ------- 98967cd [Messenger] Fix AMQP Transport factory & TransportFactoryInterface
2 parents cbb587a + 98967cd commit ef2c091

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpTransportFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(EncoderInterface $encoder, DecoderInterface $decoder
3434

3535
public function createTransport(string $dsn, array $options): TransportInterface
3636
{
37-
return new AmqpTransport($this->encoder, $this->decoder, $dsn, $options, $thid->debug);
37+
return new AmqpTransport($this->encoder, $this->decoder, $dsn, $options, $this->debug);
3838
}
3939

4040
public function supports(string $dsn, array $options): bool

src/Symfony/Component/Messenger/Transport/TransportFactoryInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
*/
2121
interface TransportFactoryInterface
2222
{
23-
public function createReceiver(string $dsn, array $options): ReceiverInterface;
24-
25-
public function createSender(string $dsn, array $options): SenderInterface;
23+
public function createTransport(string $dsn, array $options): TransportInterface;
2624

2725
public function supports(string $dsn, array $options): bool;
2826
}

0 commit comments

Comments
 (0)
0