mirror of
https://github.com/symfony/messenger.git
synced 2026-03-23 23:52:14 +01:00
bc85223ba09df0a3cf5f632ddba230e7d85dc31e
messenger:consume command (santysisi)
This PR was merged into the 8.1 branch. Discussion ---------- [Messenger] Add regex support for transport name matching in `messenger:consume` command | Q | A | ------------- | --- | Branch? | 8.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | Fix #61259 | License | MIT ### Overview: This PR adds support for regex patterns in the `messenger:consume` command, allowing devs to match transport names dynamically (e.g., scheduler_.*). ### Key Changes: * Introduced regex matching for transport names. ### Example Usage: * `php bin/console messenger:consume '(?i)THIRD.*' second.*` – Match multiple transports using regex patterns. * `php bin/console messenger:consume second.*` – Match transports starting with second. * `php bin/console messenger:consume one.* normal` – Match using both a regex (one.*) and a specific name (normal). ### Note: This feature does not work when the `messenger:consume` command is run in interactive mode. Commits ------- 4e534339627 [Messenger] Add regex support for transport name matching in `messenger:consume` command
Messenger Component
The Messenger component helps applications send and receive messages to/from other applications or via message queues.
Sponsor
The Messenger component for Symfony 8.0 is backed by Cadoles.
Cadoles is a French Cooperative and Participative Company (SCOP) providing IT services based in Dijon. This company is a key player in free software and open formats, and uses Symfony in its development services for businesses and institutions.
Help Symfony by sponsoring its development!
Resources
Languages
PHP
100%