queue
queue copied to clipboard
Refactor handlers
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ❌ |
Breaks BC? | ✔️ |
Drop support pre-configured handlers, make it compatible with validator/hydrator handlers way
The old way:
- Configure config/params
- Add
handler name
=>handler definition
- Add
handler name
to the messagegetHandlerName
method
The new way:
- Create a class that implements the new
MessageHandlerInterface
- Add the class name to the message
getHandler
method
The new way is similar with validator's or hydrator's way.