@@ -18,7 +18,7 @@ class RezzzaCommandBusExtension extends Extension
1818 /**
1919 * {@inheritdoc}
2020 */
21- public function load (array $ configs , ContainerBuilder $ container )
21+ public function load (array $ configs , ContainerBuilder $ container ): void
2222 {
2323 $ processor = new Processor ();
2424 $ config = $ processor ->processConfiguration (new Configuration (), $ configs );
@@ -35,7 +35,7 @@ public function load(array $configs, ContainerBuilder $container)
3535 $ loader ->load ('services.xml ' );
3636 }
3737
38- private function createBus ($ name , array $ config , ContainerBuilder $ container , $ loggerNormalizer , array $ logLevels )
38+ private function createBus ($ name , array $ config , ContainerBuilder $ container , $ loggerNormalizer , array $ logLevels ): void
3939 {
4040 $ providerName = current (array_keys ($ config ));
4141 $ commandBusServiceName = $ this ->getCommandBusServiceName ($ name );
@@ -68,7 +68,7 @@ private function createBus($name, array $config, ContainerBuilder $container, $l
6868 }
6969 }
7070
71- private function createRabbitMqBusCommandBus ($ commandBusServiceName , $ config , ContainerBuilder $ container )
71+ private function createRabbitMqBusCommandBus ($ commandBusServiceName , $ config , ContainerBuilder $ container ): void
7272 {
7373 $ service = new Definition ('%rezzza_command_bus.old_sound_rabbit_bus.class% ' , [
7474 new Reference ($ config ['producer_guesser ' ]),
@@ -87,7 +87,7 @@ private function createRabbitMqBusCommandBus($commandBusServiceName, $config, Co
8787 }
8888 }
8989
90- private function createSncRedisBusCommandBus ($ commandBusServiceName , $ config , ContainerBuilder $ container )
90+ private function createSncRedisBusCommandBus ($ commandBusServiceName , $ config , ContainerBuilder $ container ): void
9191 {
9292 $ client = new Reference (sprintf ('snc_redis.%s_client ' , $ config ['client ' ]));
9393 $ serializer = new Reference ($ config ['serializer ' ]);
@@ -114,7 +114,7 @@ private function createSncRedisBusCommandBus($commandBusServiceName, $config, Co
114114 }
115115 }
116116
117- private function createConsumerDefinition ($ name , Definition $ defaultProvider , array $ config , $ commandBusServiceName , ContainerBuilder $ container )
117+ private function createConsumerDefinition ($ name , Definition $ defaultProvider , array $ config , $ commandBusServiceName , ContainerBuilder $ container ): void
118118 {
119119 $ consumerDefinition = new Definition ('%rezzza_command_bus.consumer.class% ' ,
120120 [
@@ -165,7 +165,7 @@ private function createFailStrategyDefinition(array $config, $commandBusServiceN
165165 }
166166 }
167167
168- private function loadHandlers (array $ handlers , ContainerBuilder $ container )
168+ private function loadHandlers (array $ handlers , ContainerBuilder $ container ): void
169169 {
170170 if (isset ($ handlers ['retry ' ])) {
171171 $ config = $ handlers ['retry ' ];
@@ -194,7 +194,7 @@ private function loadHandlers(array $handlers, ContainerBuilder $container)
194194 }
195195 }
196196
197- private function decorateBus ($ busServiceId , ContainerBuilder $ container , $ loggerNormalizer , array $ logLevels )
197+ private function decorateBus ($ busServiceId , ContainerBuilder $ container , $ loggerNormalizer , array $ logLevels ): void
198198 {
199199 $ originalBusServiceId = $ busServiceId .'.original ' ;
200200 $ container
@@ -217,12 +217,12 @@ private function decorateBus($busServiceId, ContainerBuilder $container, $logger
217217 ;
218218 }
219219
220- private function getCommandBusServiceName ($ commandBus )
220+ private function getCommandBusServiceName ($ commandBus ): string
221221 {
222222 return sprintf ('rezzza_command_bus.command_bus.%s ' , $ commandBus );
223223 }
224224
225- private function getPriorityValue ($ priority )
225+ private function getPriorityValue ($ priority ): ? int
226226 {
227227 switch ($ priority ) {
228228 case Configuration::PRIORITY_HIGH :
@@ -234,7 +234,7 @@ private function getPriorityValue($priority)
234234 }
235235 }
236236
237- private function createLoggerReference ()
237+ private function createLoggerReference (): Reference
238238 {
239239 return new Reference ('logger ' , ContainerInterface::NULL_ON_INVALID_REFERENCE );
240240 }
0 commit comments