{"action":"created","issue":{"url":"https://api.github.com/repos/xtrasmal/TacticianBundle/issues/6","labels_url":"https://api.github.com/repos/xtrasmal/TacticianBundle/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/xtrasmal/TacticianBundle/issues/6/comments","events_url":"https://api.github.com/repos/xtrasmal/TacticianBundle/issues/6/events","html_url":"https://github.com/xtrasmal/TacticianBundle/issues/6","id":65241570,"number":6,"title":"Multiple Command Bus support","user":{"login":"rosstuck","id":146766,"avatar_url":"https://avatars.githubusercontent.com/u/146766?v=3","gravatar_id":"","url":"https://api.github.com/users/rosstuck","html_url":"https://github.com/rosstuck","followers_url":"https://api.github.com/users/rosstuck/followers","following_url":"https://api.github.com/users/rosstuck/following{/other_user}","gists_url":"https://api.github.com/users/rosstuck/gists{/gist_id}","starred_url":"https://api.github.com/users/rosstuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosstuck/subscriptions","organizations_url":"https://api.github.com/users/rosstuck/orgs","repos_url":"https://api.github.com/users/rosstuck/repos","events_url":"https://api.github.com/users/rosstuck/events{/privacy}","received_events_url":"https://api.github.com/users/rosstuck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-30T15:46:00Z","updated_at":"2015-04-09T11:52:57Z","closed_at":null,"body":"There's been a lot of offline discussion about supporting multiple command buses more easily. I'm thinking of a syntax like the following:\r\n\r\n```yml\r\ntactician:\r\n    default: # maps to the default tactician.commandbus service\r\n        method_inflector: \"tactician.handler.inflector.handle\"\r\n        handler_locator: \"tactician.handler.locator.symfony\"\r\n        middleware:\r\n            - my.app.custom.middleware\r\n            - tactician.some.standard.middleware1\r\n            - tactician.some.standard.middleware2\r\n    job_queue:  # dynamically creates new service tactician.commandbus.job_queue\r\n        method_inflector: \"tactician.handler.inflector.handle\"\r\n        handler_locator: \"some.custom.one\"\r\n        middleware:\r\n            - my.app.custom.middleware\r\n            - tactician.some.standard.middleware3\r\n```\r\n\r\nQuestions:\r\n- Does that make sense to folks?\r\n- Should the dynamic buses extend the options set in default or not? (since that refers to an actual command bus instance and not just a generic options bag, that could get confusing. Maybe split default options and default command bus instance)\r\n- Should we nest them all under a `buses` key or similar?\r\n- Are there other options we should support?"},"comment":{"url":"https://api.github.com/repos/xtrasmal/TacticianBundle/issues/comments/91207497","html_url":"https://github.com/xtrasmal/TacticianBundle/issues/6#issuecomment-91207497","issue_url":"https://api.github.com/repos/xtrasmal/TacticianBundle/issues/6","id":91207497,"user":{"login":"rdohms","id":94331,"avatar_url":"https://avatars.githubusercontent.com/u/94331?v=3","gravatar_id":"","url":"https://api.github.com/users/rdohms","html_url":"https://github.com/rdohms","followers_url":"https://api.github.com/users/rdohms/followers","following_url":"https://api.github.com/users/rdohms/following{/other_user}","gists_url":"https://api.github.com/users/rdohms/gists{/gist_id}","starred_url":"https://api.github.com/users/rdohms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdohms/subscriptions","organizations_url":"https://api.github.com/users/rdohms/orgs","repos_url":"https://api.github.com/users/rdohms/repos","events_url":"https://api.github.com/users/rdohms/events{/privacy}","received_events_url":"https://api.github.com/users/rdohms/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T11:52:57Z","updated_at":"2015-04-09T11:52:57Z","body":":+1: "}}