@@ 31-35 (lines=5) @@ | ||
28 | ||
29 | // register services only if current locator is named event locator |
|
30 | if ($named_event_locator === $current_locator) { |
|
31 | foreach ($container->findTaggedServiceIds('domain_event.listener') as $id => $attributes) { |
|
32 | foreach ($attributes as $attribute) { |
|
33 | $named_event_locator->addMethodCall('registerService', [$attribute['event'], $id]); |
|
34 | } |
|
35 | } |
|
36 | } |
|
37 | ||
38 | // BC: get services from old tag |
|
@@ 39-43 (lines=5) @@ | ||
36 | } |
|
37 | ||
38 | // BC: get services from old tag |
|
39 | foreach ($container->findTaggedServiceIds('domain_event.named_event_listener') as $id => $attributes) { |
|
40 | foreach ($attributes as $attribute) { |
|
41 | $named_event_locator->addMethodCall('registerService', [$attribute['event'], $id]); |
|
42 | } |
|
43 | } |
|
44 | } |
|
45 | } |
|
46 |