Completed
Push — v2 ( ea95e8...7ffcf2 )
by Faouzi
07:44
created
src/RabbitServiceProvider.php 2 patches
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
         return $app['rabbit.connection'][$connection_name];
53 53
     }
54 54
 
55
+    /**
56
+     * @param Container $app
57
+     */
55 58
     private function loadConnections($app)
56 59
     {
57 60
         $app['rabbit.connection'] = function ($app) {
@@ -82,6 +85,9 @@  discard block
 block discarded – undo
82 85
         };
83 86
     }
84 87
 
88
+    /**
89
+     * @param Container $app
90
+     */
85 91
     private function loadProducers($app)
86 92
     {
87 93
         $app['rabbit.producer'] = function ($app) {
@@ -112,6 +118,9 @@  discard block
 block discarded – undo
112 118
         };
113 119
     }
114 120
 
121
+    /**
122
+     * @param Container $app
123
+     */
115 124
     private function loadConsumers($app)
116 125
     {
117 126
         $app['rabbit.consumer'] = function ($app) {
@@ -150,6 +159,9 @@  discard block
 block discarded – undo
150 159
         };
151 160
     }
152 161
 
162
+    /**
163
+     * @param Container $app
164
+     */
153 165
     private function loadAnonymousConsumers($app)
154 166
     {
155 167
         $app['rabbit.anonymous_consumer'] = function ($app) {
@@ -171,6 +183,9 @@  discard block
 block discarded – undo
171 183
         };
172 184
     }
173 185
 
186
+    /**
187
+     * @param Container $app
188
+     */
174 189
     private function loadMultipleConsumers($app)
175 190
     {
176 191
         $app['rabbit.multiple_consumer'] = function ($app) {
@@ -209,6 +224,9 @@  discard block
 block discarded – undo
209 224
 
210 225
     }
211 226
 
227
+    /**
228
+     * @param Container $app
229
+     */
212 230
     private function loadRpcClients($app)
213 231
     {
214 232
         $app['rabbit.rpc_client'] = function ($app) {
@@ -232,6 +250,9 @@  discard block
 block discarded – undo
232 250
         };
233 251
     }
234 252
 
253
+    /**
254
+     * @param Container $app
255
+     */
235 256
     private function loadRpcServers($app)
236 257
     {
237 258
         $app['rabbit.rpc_server'] = function ($app) {
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,18 +2,16 @@
 block discarded – undo
2 2
 
3 3
 namespace ETNA\Silex\Provider\RabbitMQ;
4 4
 
5
-use Pimple\ServiceProviderInterface;
6
-use Pimple\Container;
7
-use Symfony\Component\Routing\Generator\UrlGenerator;
8
-use OldSound\RabbitMqBundle\RabbitMq\Producer;
9
-use OldSound\RabbitMqBundle\RabbitMq\Consumer;
10 5
 use OldSound\RabbitMqBundle\RabbitMq\AnonConsumer;
6
+use OldSound\RabbitMqBundle\RabbitMq\Consumer;
11 7
 use OldSound\RabbitMqBundle\RabbitMq\MultipleConsumer;
8
+use OldSound\RabbitMqBundle\RabbitMq\Producer;
12 9
 use OldSound\RabbitMqBundle\RabbitMq\RpcClient;
13 10
 use OldSound\RabbitMqBundle\RabbitMq\RpcServer;
14 11
 use PhpAmqpLib\Connection\AMQPConnection;
15
-use PhpAmqpLib\Connection\AMQPLazyConnection;
16 12
 use PhpAmqpLib\Connection\AMQPSSLConnection;
13
+use Pimple\Container;
14
+use Pimple\ServiceProviderInterface;
17 15
 
18 16
 /**
19 17
  * Code repris de fiunchinho/rabbitmq-service-provider en attendant la compatibilité
Please login to merge, or discard this patch.