Issue Bug Under Review

#111714before/after of message handlers is ignored

Benni Mack 12/03/26, 13:54 updated 12/03/26, 14:02

Description

Since message handlers are identified by “service->method@transports” internally (#108806), a “before” or “after” attribute of a “messenger.message_handler” service tag that names another handler by its service id – as documented in Feature-97700 – does not match any handler anymore and is silently ignored. Handlers are then called in an arbitrary order.

Additionally, Symfony 8.2 adds “before” and “after” arguments to #[AsMessageHandler], which TYPO3 does not pass on to the service tag.

References in “before” and “after” should be resolved by service id, class name or “service::method”, as Symfony does, for tags and for the attribute.

Reviews 1

Linked, but not in Forger: Change 98298

History 01

  1. Gerrit Code Review pushed patch set 1 for main to change 98298 status New Under Review 12/03/26, 14:02