File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/Symfony/Component/Message Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 18
18
use Symfony \Component \DependencyInjection \Definition ;
19
19
use Symfony \Component \DependencyInjection \Exception \RuntimeException ;
20
20
use Symfony \Component \DependencyInjection \Reference ;
21
- use Symfony \Component \Message \Handler \MessageHandlerCollection ;
21
+ use Symfony \Component \Message \Handler \ChainHandler ;
22
22
23
23
/**
24
24
* @author Samuel Roze <samuel.roze@gmail.com>
@@ -86,7 +86,7 @@ private function registerHandlers(ContainerBuilder $container)
86
86
if (1 === count ($ handlers )) {
87
87
$ handlersByMessage [$ message ] = current ($ handlers );
88
88
} else {
89
- $ d = new Definition (MessageHandlerCollection ::class, array ($ handlers ));
89
+ $ d = new Definition (ChainHandler ::class, array ($ handlers ));
90
90
$ d ->setPrivate (true );
91
91
$ serviceId = hash ('sha1 ' , $ message );
92
92
$ definitions [$ serviceId ] = $ d ;
Original file line number Diff line number Diff line change 16
16
*
17
17
* @author Samuel Roze <samuel.roze@gmail.com>
18
18
*/
19
- class MessageHandlerCollection
19
+ class ChainHandler
20
20
{
21
21
/**
22
22
* @var callable[]
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Message ;
13
13
14
14
use Symfony \Component \Message \Exception \NoHandlerForMessageException ;
15
- use Symfony \Component \Message \Handler \MessageHandlerCollection ;
15
+ use Symfony \Component \Message \Handler \ChainHandler ;
16
16
17
17
/**
18
18
* @author Samuel Roze <samuel.roze@gmail.com>
@@ -41,7 +41,7 @@ public function resolve($message): callable
41
41
42
42
$ handler = $ this ->messageToHandlerMapping [$ messageKey ];
43
43
if ($ this ->isCollectionOfHandlers ($ handler )) {
44
- $ handler = new MessageHandlerCollection ($ handler );
44
+ $ handler = new ChainHandler ($ handler );
45
45
}
46
46
47
47
return $ handler ;
You can’t perform that action at this time.
0 commit comments