title: RabbitMqBundle connection not enstablished
body: <p>I installed <a href="https://github.com/videlalvaro/RabbitMqBundle" rel="nofollow">https://github.com/videlalvaro/RabbitMqBundle</a> in my sf2 project, with this configuration:</p>
  
  <pre><code>old_sound_rabbit_mq:
  connections:
      default:
          host:     'localhost'
          port:     5672
          user:     'guest'
          password: 'guest'
          vhost:    '/'
          lazy:     false
  
  producers:
      processing:
          connection: default
          exchange_options: { name: 'processing', type: direct }
          class: Assignment\Bundle\MainBundle\RabbitMq\Producer\ProcessingProducer
  </code></pre>
  
  <p>Service configuration:</p>
  
  <pre><code>processing_producer:
      class: Assignment\Bundle\MainBundle\RabbitMq\Producer\ProcessingProducer
      arguments: []
  </code></pre>
  
  <p>Producer source:</p>
  
  <pre><code>class ProcessingProducer extends Producer
  {
  
  public function __construct()
  {
      parent::setContentType("application/json");
  }
  
  /**
   * @param string $msgBody
   * @param string $routingKey
   * @param array $additionalProperties
   */
  public function publish($msgBody, $routingKey = '', $additionalProperties = array())
  {
      $msgBody = json_encode($msgBody);
  
      parent::publish($msgBody, $routingKey, $additionalProperties);
  }
  }
  </code></pre>
  
  <p>In the Controller I try to do a test publish:</p>
  
  <pre><code>public function indexAction()
  {
  
      $this-&gt;get('old_sound_rabbit_mq.processing_producer')-&gt;publish(array('a' =&gt; 'b'));
  
  
      return $this-&gt;render('::Default/index.html.twig');
  }
  </code></pre>
  
  <p>The result is: <em>Error: Call to a member function channel() on a non-object</em></p>
  
  <pre><code>[1] Symfony\Component\Debug\Exception\FatalErrorException: Error: Call to a member function channel() on a non-object
  at n/a
      in /var/www/vendor/oldsound/rabbitmq-bundle/OldSound/RabbitMqBundle/RabbitMq/BaseAmqp.php line 75
  
  at OldSound\RabbitMqBundle\RabbitMq\BaseAmqp-&gt;getChannel()
      in /var/www/vendor/oldsound/rabbitmq-bundle/OldSound/RabbitMqBundle/RabbitMq/BaseAmqp.php line 129
  
  at OldSound\RabbitMqBundle\RabbitMq\BaseAmqp-&gt;exchangeDeclare()
      in /var/www/vendor/oldsound/rabbitmq-bundle/OldSound/RabbitMqBundle/RabbitMq/BaseAmqp.php line 167
  
  at OldSound\RabbitMqBundle\RabbitMq\BaseAmqp-&gt;setupFabric()
      in /var/www/vendor/oldsound/rabbitmq-bundle/OldSound/RabbitMqBundle/RabbitMq/Producer.php line 45
  
  at OldSound\RabbitMqBundle\RabbitMq\Producer-&gt;publish('msgBody' =&gt; '', 'routingKey' =&gt; '', 'additionalProperties' =&gt; '')
      in /var/www/src/Assignment/Bundle/MainBundle/RabbitMq/Producer/ProcessingProducer.php line 26
  
  at Assignment\Bundle\MainBundle\RabbitMq\Producer\ProcessingProducer-&gt;publish('msgBody' =&gt; '', 'routingKey' =&gt; '', 'additionalProperties' =&gt; '')
      in /var/www/src/Assignment/Bundle/MainBundle/Controller/DefaultController.php line 15
  
  at Assignment\Bundle\MainBundle\Controller\DefaultController-&gt;indexAction()
      in /var/www/app/bootstrap.php.cache line 3022
  
  at call_user_func_array('', '')
      in /var/www/app/bootstrap.php.cache line 3022
  
  at Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw('request' =&gt; '', 'type' =&gt; '')
      in /var/www/app/bootstrap.php.cache line 2984
  
  at Symfony\Component\HttpKernel\HttpKernel-&gt;handle('request' =&gt; '', 'type' =&gt; '', 'catch' =&gt; '')
      in /var/www/app/bootstrap.php.cache line 3133
  
  at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel-&gt;handle('request' =&gt; '', 'type' =&gt; '', 'catch' =&gt; '')
      in /var/www/app/bootstrap.php.cache line 2377
  
  at Symfony\Component\HttpKernel\Kernel-&gt;handle('request' =&gt; '', 'type' =&gt; '', 'catch' =&gt; '')
      in /var/www/web/app_dev.php line 28
  
  at {main}()
      in /var/www/web/app_dev.php line 0
  </code></pre>