{"action":"opened","issue":{"url":"https://api.github.com/repos/ldaptools/ldaptools-bundle/issues/6","repository_url":"https://api.github.com/repos/ldaptools/ldaptools-bundle","labels_url":"https://api.github.com/repos/ldaptools/ldaptools-bundle/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ldaptools/ldaptools-bundle/issues/6/comments","events_url":"https://api.github.com/repos/ldaptools/ldaptools-bundle/issues/6/events","html_url":"https://github.com/ldaptools/ldaptools-bundle/issues/6","id":194461575,"number":6,"title":"Default connection for Doctrine is hard-coded in","user":{"login":"natelenart","id":202922,"avatar_url":"https://avatars.githubusercontent.com/u/202922?v=3","gravatar_id":"","url":"https://api.github.com/users/natelenart","html_url":"https://github.com/natelenart","followers_url":"https://api.github.com/users/natelenart/followers","following_url":"https://api.github.com/users/natelenart/following{/other_user}","gists_url":"https://api.github.com/users/natelenart/gists{/gist_id}","starred_url":"https://api.github.com/users/natelenart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natelenart/subscriptions","organizations_url":"https://api.github.com/users/natelenart/orgs","repos_url":"https://api.github.com/users/natelenart/repos","events_url":"https://api.github.com/users/natelenart/events{/privacy}","received_events_url":"https://api.github.com/users/natelenart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-08T22:27:26Z","updated_at":"2016-12-08T22:27:26Z","closed_at":null,"body":"Hello, I'm looking to upgrade my current LDAP implementation to this bundle, which looks way better and more complete than what I'm using.  I got partway into switching, then hit an error:\r\n\r\n```\r\n [RuntimeException]\r\n  The Doctrine connection \"default\" referenced in service \"ldap_tools.doctrine.event_listener.ldap_object\" does not exist. Available connections names: ...\r\n```\r\n\r\nMy project currently doesn't have a Doctrine connection named \"default\".  I looked through your code trying to see if I could configure it somehow, but it looks like it's hardcoded into the `addTag` call:\r\n\r\n```\r\n$container->getDefinition('ldap_tools.doctrine.event_listener.ldap_object')->addTag(\r\n    'doctrine.event_subscriber',\r\n    ['connection' => 'default']\r\n);\r\n```\r\n\r\nIs this something that could be changed to be configurable?  I realize my situation isn't common (not having a \"default\" connection, but at the same time, it's not unreasonable to think that other users might have multiple connections and the one they might want to use might not be the default one."}}
{"actor":{"display_login":"natelenart"}}