@@ -13,7 +13,7 @@ |
||
13 | 13 | $adapterClass = sprintf('%s\\Adapter\\%sAdapter', __NAMESPACE__, Inflector::pascalize($adapterName)); |
14 | 14 | |
15 | 15 | if (!class_exists($adapterClass)) { |
16 | - throw new \InvalidArgumentException('Adapter class does not exist: ' . $adapterClass); |
|
16 | + throw new \InvalidArgumentException('Adapter class does not exist: '.$adapterClass); |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | return new $adapterClass($adapterConfig); |
@@ -17,13 +17,13 @@ |
||
17 | 17 | $container['queue.adapter_name'] = 'null'; |
18 | 18 | } |
19 | 19 | |
20 | - $container['queue.adapter'] = $container->factory(function ($container) { |
|
20 | + $container['queue.adapter'] = $container->factory(function($container) { |
|
21 | 21 | $adapterFactory = new AdapterFactory(); |
22 | 22 | |
23 | 23 | return $adapterFactory->getAdapter($container['queue.adapter_name'], $container['queue.adapter_options']); |
24 | 24 | }); |
25 | 25 | |
26 | - $container['queue.service'] = function ($container) { |
|
26 | + $container['queue.service'] = function($container) { |
|
27 | 27 | $queueService = new QueueService(); |
28 | 28 | $queueService->setAdapter($container['queue.adapter']); |
29 | 29 | $queueService->setLogger($container['monolog']); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | { |
39 | 39 | $this->getChannel()->queue_declare($job->getQueue(), true, $job->isPersistent(), false, false); |
40 | 40 | $this->getChannel()->basic_qos(null, 1, null); |
41 | - $this->getChannel()->basic_consume($job->getQueue(), '', false, false, false, false, function ($message) use ($job): void { |
|
41 | + $this->getChannel()->basic_consume($job->getQueue(), '', false, false, false, false, function($message) use ($job): void { |
|
42 | 42 | $job->setPayload($message->body); |
43 | 43 | $job->perform(); |
44 | 44 |