Skip to content

Commit 8d715e9

Browse files
authored
Merge pull request #500 from caciobanu/master
Fixes for Symfony 4
2 parents 58eb517 + f8834aa commit 8d715e9

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

DependencyInjection/OldSoundRabbitMqExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ protected function loadProducers()
139139
if ($this->config['sandbox'] == false) {
140140
foreach ($this->config['producers'] as $key => $producer) {
141141
$definition = new Definition($producer['class']);
142+
$definition->setPublic(true);
142143
$definition->addTag('old_sound_rabbit_mq.base_amqp');
143144
$definition->addTag('old_sound_rabbit_mq.producer');
144145
//this producer doesn't define an exchange -> using AMQP Default

Resources/config/rabbitmq.xml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,48 @@
2929
<argument type="collection" />
3030
<tag name="data_collector" template="OldSoundRabbitMqBundle:Collector:collector.html.twig" id="rabbit_mq" />
3131
</service>
32-
32+
3333
<service id="old_sound_rabbit_mq.parts_holder" class="%old_sound_rabbit_mq.parts_holder.class%" />
34+
35+
<service id="old_sound_rabbit_mq.anon_consumer_command" class="OldSound\RabbitMqBundle\Command\AnonConsumerCommand">
36+
<tag name="console.command" command="rabbitmq:anon-consumer" />
37+
</service>
38+
39+
<service id="old_sound_rabbit_mq.batch_consumer_command" class="OldSound\RabbitMqBundle\Command\BatchConsumerCommand">
40+
<tag name="console.command" command="rabbitmq:batch:consumer" />
41+
</service>
42+
43+
<service id="old_sound_rabbit_mq.consumer_command" class="OldSound\RabbitMqBundle\Command\ConsumerCommand">
44+
<tag name="console.command" command="rabbitmq:consumer" />
45+
</service>
46+
47+
<service id="old_sound_rabbit_mq.delete_command" class="OldSound\RabbitMqBundle\Command\DeleteCommand">
48+
<tag name="console.command" command="rabbitmq:delete" />
49+
</service>
50+
51+
<service id="old_sound_rabbit_mq.dynamic_consumer_command" class="OldSound\RabbitMqBundle\Command\DynamicConsumerCommand">
52+
<tag name="console.command" command="rabbitmq:dynamic-consumer" />
53+
</service>
54+
55+
<service id="old_sound_rabbit_mq.multiple_consumer_command" class="OldSound\RabbitMqBundle\Command\MultipleConsumerCommand">
56+
<tag name="console.command" command="rabbitmq:multiple-consumer" />
57+
</service>
58+
59+
<service id="old_sound_rabbit_mq.purge_consumer_command" class="OldSound\RabbitMqBundle\Command\PurgeConsumerCommand">
60+
<tag name="console.command" command="rabbitmq:multiple-consumer" />
61+
</service>
62+
63+
<service id="old_sound_rabbit_mq.command.rpc_server_command" class="OldSound\RabbitMqBundle\Command\RpcServerCommand">
64+
<tag name="console.command" command="rabbitmq:rpc-server" />
65+
</service>
66+
67+
<service id="old_sound_rabbit_mq.command.setup_fabric_command" class="OldSound\RabbitMqBundle\Command\SetupFabricCommand">
68+
<tag name="console.command" command="rabbitmq:setup-fabric" />
69+
</service>
70+
71+
<service id="old_sound_rabbit_mq.command.std_in_producer_command" class="OldSound\RabbitMqBundle\Command\StdInProducerCommand">
72+
<tag name="console.command" command="rabbitmq:stdin-producer" />
73+
</service>
3474
</services>
3575

3676
</container>

Tests/DependencyInjection/Fixtures/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ old_sound_rabbit_mq:
173173
queue_options_provider: bar.dynamic.provider
174174
bindings:
175175
- {exchange: foo, destination: bar, routing_key: baz}
176-
- {exchange: moo, connection: default2, destination: cow, nowait: true, destination_is_exchange: true, arguments: {moo:cow}}
176+
- {exchange: moo, connection: default2, destination: cow, nowait: true, destination_is_exchange: true, arguments: {moo: cow}}
177177
anon_consumers:
178178
foo_anon_consumer:
179179
connection: foo_connection

0 commit comments

Comments
 (0)