{"action":"created","issue":{"url":"https://api.github.com/repos/lakiboy/SimpleBusBernardBundleBridge/issues/2","labels_url":"https://api.github.com/repos/lakiboy/SimpleBusBernardBundleBridge/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/lakiboy/SimpleBusBernardBundleBridge/issues/2/comments","events_url":"https://api.github.com/repos/lakiboy/SimpleBusBernardBundleBridge/issues/2/events","html_url":"https://github.com/lakiboy/SimpleBusBernardBundleBridge/issues/2","id":110437159,"number":2,"title":"Separate queue for events and commands","user":{"login":"ruudk","id":104180,"avatar_url":"https://avatars.githubusercontent.com/u/104180?v=3","gravatar_id":"","url":"https://api.github.com/users/ruudk","html_url":"https://github.com/ruudk","followers_url":"https://api.github.com/users/ruudk/followers","following_url":"https://api.github.com/users/ruudk/following{/other_user}","gists_url":"https://api.github.com/users/ruudk/gists{/gist_id}","starred_url":"https://api.github.com/users/ruudk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruudk/subscriptions","organizations_url":"https://api.github.com/users/ruudk/orgs","repos_url":"https://api.github.com/users/ruudk/repos","events_url":"https://api.github.com/users/ruudk/events{/privacy}","received_events_url":"https://api.github.com/users/ruudk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-10-08T12:23:56Z","updated_at":"2015-10-08T13:15:06Z","closed_at":null,"body":"Currently, every event/command gets its own queue. This is something that you want (https://github.com/SimpleBus/RabbitMQBundleBridge/issues/14#issuecomment-144996767) but I really like the way SimpleBusRabbitMqBundle does this.\r\n\r\nIs it possible to make this configurable?\r\n\r\nWhen looking at the BernardPublisher I see that it gets the `$type` injected but the RoutingKeyResolver doesn't use it. So I can't create my own routing key resolver for this.\r\n\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/lakiboy/SimpleBusBernardBundleBridge/issues/comments/146541470","html_url":"https://github.com/lakiboy/SimpleBusBernardBundleBridge/issues/2#issuecomment-146541470","issue_url":"https://api.github.com/repos/lakiboy/SimpleBusBernardBundleBridge/issues/2","id":146541470,"user":{"login":"ruudk","id":104180,"avatar_url":"https://avatars.githubusercontent.com/u/104180?v=3","gravatar_id":"","url":"https://api.github.com/users/ruudk","html_url":"https://github.com/ruudk","followers_url":"https://api.github.com/users/ruudk/followers","following_url":"https://api.github.com/users/ruudk/following{/other_user}","gists_url":"https://api.github.com/users/ruudk/gists{/gist_id}","starred_url":"https://api.github.com/users/ruudk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruudk/subscriptions","organizations_url":"https://api.github.com/users/ruudk/orgs","repos_url":"https://api.github.com/users/ruudk/repos","events_url":"https://api.github.com/users/ruudk/events{/privacy}","received_events_url":"https://api.github.com/users/ruudk/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T13:15:06Z","updated_at":"2015-10-08T13:15:06Z","body":"I'm thinking of the following configuration\r\n\r\n```yaml\r\nsimple_bus_bernard_bundle_bridge:\r\n    commands:\r\n        queue:\r\n            default: my_default_queue\r\n            MyBundle\\GenerateThumbnailCommand: thumbnails_queue\r\n    events:\r\n        queue: my.queue.name.resolver.service  # automatically detect this is a service or use as string\r\n```\r\n\r\n`queue` can be a string, a map (class map with `default` queue key) or a `service.id`"}}