videlalvaro/RabbitMqBundle — Issue #12: Container is not being passed into consumers
Author: jonotron
Created: 2011-11-10 23:19:10+00:00
State: open

The documentation indicates that by declaring your consumer to extend ContainerAware, the consumer should have access to the DIC. In practice, however, this does not appear to work.

```$this->container``` is always set to null, and defining the setContainer function:
```
public function setContainer(ContainerInterface $container = null) {
die('Consumer container set');
$this->container = $container;
}
```

the setContainer function is never called.

Is this an implementation problem with RabbitMQBundle or a symfony core issue?