Skip to content

Commit 80f5e68

Browse files
bastnicskafandri
authored andcommitted
Lazy RPC Client by default
1 parent 11f6f4f commit 80f5e68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DependencyInjection/OldSoundRabbitMqExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ protected function loadRpcClients()
389389
{
390390
foreach ($this->config['rpc_clients'] as $key => $client) {
391391
$definition = new Definition('%old_sound_rabbit_mq.rpc_client.class%');
392+
$definition->setLazy(true);
392393
$definition
393394
->addTag('old_sound_rabbit_mq.rpc_client')
394395
->addMethodCall('initClient', array($client['expect_serialized_response']));

0 commit comments

Comments
 (0)