Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #35502 [Messenger] Fix bug when using single route with XML confi…
…g (Nyholm) This PR was squashed before being merged into the 4.4 branch (closes #35502). Discussion ---------- [Messenger] Fix bug when using single route with XML config | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #35500 | License | MIT | Doc PR | When using just a single routing attribute with XML then the sky falls down. This small change make sure everything works as expected. Commits ------- a2a606e [Messenger] Fix bug when using single route with XML config
- Loading branch information
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...undle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/messenger_routing_single.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
$container->loadFromExtension('framework', [ | ||
'messenger' => [ | ||
'routing' => [ | ||
'Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\DummyMessage' => ['amqp'], | ||
], | ||
'transports' => [ | ||
'amqp' => 'amqp://localhost/%2f/messages', | ||
], | ||
], | ||
]); |
16 changes: 16 additions & 0 deletions
16
...undle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/messenger_routing_single.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:framework="http://symfony.com/schema/dic/symfony" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd | ||
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> | ||
|
||
<framework:config> | ||
<framework:messenger> | ||
<framework:routing message-class="Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\DummyMessage"> | ||
<framework:sender service="amqp" /> | ||
</framework:routing> | ||
<framework:transport name="amqp" dsn="amqp://localhost/%2f/messages" /> | ||
</framework:messenger> | ||
</framework:config> | ||
</container> |
7 changes: 7 additions & 0 deletions
7
...undle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/messenger_routing_single.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
framework: | ||
messenger: | ||
routing: | ||
'Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\DummyMessage': [amqp] | ||
|
||
transports: | ||
amqp: 'amqp://localhost/%2f/messages' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters