{"action":"opened","issue":{"url":"https://api.github.com/repos/symfony-cmf/ResourceBundle/issues/10","labels_url":"https://api.github.com/repos/symfony-cmf/ResourceBundle/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/symfony-cmf/ResourceBundle/issues/10/comments","events_url":"https://api.github.com/repos/symfony-cmf/ResourceBundle/issues/10/events","html_url":"https://github.com/symfony-cmf/ResourceBundle/issues/10","id":64804539,"number":10,"title":"A default repository","user":{"login":"WouterJ","id":749025,"avatar_url":"https://avatars.githubusercontent.com/u/749025?v=3","gravatar_id":"","url":"https://api.github.com/users/WouterJ","html_url":"https://github.com/WouterJ","followers_url":"https://api.github.com/users/WouterJ/followers","following_url":"https://api.github.com/users/WouterJ/following{/other_user}","gists_url":"https://api.github.com/users/WouterJ/gists{/gist_id}","starred_url":"https://api.github.com/users/WouterJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WouterJ/subscriptions","organizations_url":"https://api.github.com/users/WouterJ/orgs","repos_url":"https://api.github.com/users/WouterJ/repos","events_url":"https://api.github.com/users/WouterJ/events{/privacy}","received_events_url":"https://api.github.com/users/WouterJ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-27T16:57:55Z","updated_at":"2015-03-27T16:57:55Z","closed_at":null,"body":"What do you think of configuring a default repository: One that will be used when the repository name parameter is omitted.\r\n\r\nAt the moment, anything using the ResourceBundle needs to know the repository name. As this name is purely based on the runtime configuration, every bundle needing something from the ResourceBundle is required to have a configuration option for this option.\r\n\r\nIn the case of the treeBrowserBundle, this would mean that anyone using the tree form type needs to know the repository name.\r\n\r\nI think it would be much easier to have a default repository (are there many use-cases for multiple repositories?).\r\n\r\nThis could be done by either having a convention that the default repository is called `default`:\r\n```yaml\r\ncmf_resource:\r\n    repositories:\r\n        default:\r\n            # ...\r\n```\r\n\r\nOr a new option can be added:\r\n```yaml\r\ncmf_resource:\r\n    default_repository_name: phpcrodm\r\n    repositories:\r\n        phpcrodm:\r\n            # ...\r\n```"}}