File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
src/Symfony/Component/Message Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ class HandlerLocator implements HandlerLocatorInterface
21
21
{
22
22
/**
23
23
* Maps a message (its class) to a given handler.
24
- *
25
- * @var array
26
24
*/
27
25
private $ messageToHandlerMapping ;
28
26
@@ -39,18 +37,6 @@ public function resolve($message): callable
39
37
throw new NoHandlerForMessageException (sprintf ('No handler for message "%s". ' , $ messageKey ));
40
38
}
41
39
42
- $ handler = $ this ->messageToHandlerMapping [$ messageKey ];
43
- if ($ this ->isCollectionOfHandlers ($ handler )) {
44
- $ handler = new ChainHandler ($ handler );
45
- }
46
-
47
- return $ handler ;
48
- }
49
-
50
- private function isCollectionOfHandlers ($ handler ): bool
51
- {
52
- return is_array ($ handler ) && array_reduce ($ handler , function (bool $ allHandlers , $ handler ) {
53
- return $ allHandlers && is_callable ($ handler );
54
- }, true );
40
+ return $ this ->messageToHandlerMapping [$ messageKey ];
55
41
}
56
42
}
You can’t perform that action at this time.
0 commit comments