Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Messenger wildcard routing doesn't work #51580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
speller opened this issue Sep 6, 2023 · 1 comment
Closed

Messenger wildcard routing doesn't work #51580

speller opened this issue Sep 6, 2023 · 1 comment

Comments

@speller
Copy link

speller commented Sep 6, 2023

Symfony version(s) affected

6.2.7

Description

I'm trying to use wildcards to route all messages from a specific namespace to the same transport:

framework:
    messenger:
        routing:
            'App\Admin\Application\Message\Foo\*': foo

But this doesn't work, the container compilation fails with the following error:

$ bin/console

In FrameworkExtension.php line 2158:

  Invalid Messenger routing configuration: class or interface "App\Admin\Application\Message\Foo\*" not found.

At the same time, the documentation for v 6.2 clearly states:

You may use a partial PHP namespace like 'App\Message*' to match all the messages within the matching namespace.

How to reproduce

Try using the wildcard as a part of the FQCN.

Possible Solution

No response

Additional Context

No response

@xabbuh
Copy link
Member

xabbuh commented Sep 6, 2023

symfony/symfony-docs#17532 was merged into the 6.2 branch by mistake. The feature was added to Symfony 6.3. You will need to update your version of the Messenger component.

@xabbuh xabbuh closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants