You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#28697 [Messenger] drop "handler." prefix from ContainerHandlerLocator (nicolas-grekas)
This PR was merged into the 4.2-dev branch.
Discussion
----------
[Messenger] drop "handler." prefix from ContainerHandlerLocator
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | no
| BC breaks? | yes
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | symfony#28621
| License | MIT
| Doc PR | -
I fail to understand what this prefix is for. Looks like boilerplate to me, let's drop it, isn't it?
An alternative to symfony#28621
Commits
-------
6c56e82 [Messenger] drop "handler." prefix from ContainerHandlerLocator
Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/CHANGELOG.md
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ CHANGELOG
4
4
4.2.0
5
5
-----
6
6
7
-
*[BC BREAK] The signature of Amqp* classes changed to take a `Connection` as a first argument and an optional
7
+
* The component is not experimental anymore
8
+
*[BC BREAK] The signature of `Amqp*` classes changed to take a `Connection` as a first argument and an optional
8
9
`Serializer` as a second argument.
9
10
*[BC BREAK]`SenderLocator` has been renamed to `ContainerSenderLocator`
10
11
Be careful as there is still a `SenderLocator` class, but it does not rely on a `ContainerInterface` to find senders.
@@ -16,3 +17,10 @@ CHANGELOG
16
17
*[BC BREAK] The `ConsumeMessagesCommand` class now takes an instance of `Psr\Container\ContainerInterface`
17
18
as first constructor argument
18
19
*[BC BREAK] The `EncoderInterface` and `DecoderInterface` have been replaced by a unified `Symfony\Component\Messenger\Transport\Serialization\SerializerInterface`.
20
+
*[BC BREAK] The locator passed to `ContainerHandlerLocator` should not prefix its keys by "handler." anymore
21
+
*[BC BREAK] The `AbstractHandlerLocator::getHandler()` method uses `?callable` as return type
0 commit comments