Conditions | 4 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function shutdown(): void |
||
26 | { |
||
27 | parent::shutdown(); |
||
28 | if (!$this->container->hasParameter('old_sound_rabbit_mq.base_amqp')) { |
||
29 | return; |
||
30 | } |
||
31 | $connections = $this->container->getParameter('old_sound_rabbit_mq.base_amqp'); |
||
32 | foreach ($connections as $connection) { |
||
33 | if ($this->container->initialized($connection)) { |
||
34 | $this->container->get($connection)->close(); |
||
35 | } |
||
39 |