Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class ZenstruckMessengerTestBundle extends Bundle implements CompilerPassInterface |
||
17 | { |
||
18 | public function build(ContainerBuilder $container): void |
||
19 | { |
||
20 | $container->register('zenstruck_messenger_test.transport_factory', TestTransportFactory::class) |
||
21 | ->setArguments([new Reference('messenger.routable_message_bus'), new Reference('event_dispatcher')]) |
||
22 | ->addTag('messenger.transport_factory') |
||
23 | ; |
||
24 | |||
25 | $container->register('zenstruck_messenger_test.transport_registry', TestTransportRegistry::class) |
||
26 | ->setPublic(true) |
||
27 | ; |
||
28 | |||
29 | $container->addCompilerPass($this); |
||
30 | } |
||
31 | |||
32 | public function getContainerExtension(): ?ExtensionInterface |
||
33 | { |
||
34 | return null; |
||
35 | } |
||
36 | |||
37 | public function process(ContainerBuilder $container): void |
||
51 | } |
||
52 | } |
||
53 | } |
||
54 |