diff --git a/src/Lw/Infrastructure/Ui/Web/Silex/Application.php b/src/Lw/Infrastructure/Ui/Web/Silex/Application.php index 4e6d475..5b9e5c5 100644 --- a/src/Lw/Infrastructure/Ui/Web/Silex/Application.php +++ b/src/Lw/Infrastructure/Ui/Web/Silex/Application.php @@ -24,7 +24,7 @@ use Silex\Provider\DoctrineServiceProvider; use Silex\Provider\MonologServiceProvider; use Silex\Provider; -use PhpAmqpLib\Connection\AMQPStreamConnection; +use PhpAmqpLib\Connection\AMQPConnection; use Silex\Provider\TwigServiceProvider; class Application @@ -72,7 +72,7 @@ public static function bootstrap() $app['message_producer'] = $app->share(function () { return new RabbitMqMessageProducer( - new AMQPStreamConnection('localhost', 5672, 'guest', 'guest') + new AMQPConnection('localhost', 5672, 'guest', 'guest') ); });