{"action":"created","issue":{"url":"https://api.github.com/repos/SalomonBrys/Kodein/issues/112","repository_url":"https://api.github.com/repos/SalomonBrys/Kodein","labels_url":"https://api.github.com/repos/SalomonBrys/Kodein/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/SalomonBrys/Kodein/issues/112/comments","events_url":"https://api.github.com/repos/SalomonBrys/Kodein/issues/112/events","html_url":"https://github.com/SalomonBrys/Kodein/issues/112","id":295833508,"number":112,"title":"Default dependency for not registered tag","user":{"login":"Dwite","id":4738859,"avatar_url":"https://avatars1.githubusercontent.com/u/4738859?v=4","gravatar_id":"","url":"https://api.github.com/users/Dwite","html_url":"https://github.com/Dwite","followers_url":"https://api.github.com/users/Dwite/followers","following_url":"https://api.github.com/users/Dwite/following{/other_user}","gists_url":"https://api.github.com/users/Dwite/gists{/gist_id}","starred_url":"https://api.github.com/users/Dwite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dwite/subscriptions","organizations_url":"https://api.github.com/users/Dwite/orgs","repos_url":"https://api.github.com/users/Dwite/repos","events_url":"https://api.github.com/users/Dwite/events{/privacy}","received_events_url":"https://api.github.com/users/Dwite/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-09T11:04:39Z","updated_at":"2018-02-09T16:31:48Z","closed_at":"2018-02-09T16:31:48Z","author_association":"NONE","body":"Hello, \r\n\r\nI'm curious is it possible to provide default implementation if there is no dependency with the requested tag?\r\n\r\n```\r\nval kodein = Kodein {\r\n    bind<Dice>() with factory { sides: Int -> DefaultDice() } \r\n    bind<Dice>(\"DnD10\") with provider { Dice10() } \r\n    bind<Dice>(\"DnD20\") with singleton { Dice20() } \r\n}\r\n```\r\n\r\nThen when we request Dive with tag **\"DND30\"** `DefaultDice` is returned\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SalomonBrys/Kodein/issues/comments/364484577","html_url":"https://github.com/SalomonBrys/Kodein/issues/112#issuecomment-364484577","issue_url":"https://api.github.com/repos/SalomonBrys/Kodein/issues/112","id":364484577,"user":{"login":"SalomonBrys","id":249857,"avatar_url":"https://avatars1.githubusercontent.com/u/249857?v=4","gravatar_id":"","url":"https://api.github.com/users/SalomonBrys","html_url":"https://github.com/SalomonBrys","followers_url":"https://api.github.com/users/SalomonBrys/followers","following_url":"https://api.github.com/users/SalomonBrys/following{/other_user}","gists_url":"https://api.github.com/users/SalomonBrys/gists{/gist_id}","starred_url":"https://api.github.com/users/SalomonBrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SalomonBrys/subscriptions","organizations_url":"https://api.github.com/users/SalomonBrys/orgs","repos_url":"https://api.github.com/users/SalomonBrys/repos","events_url":"https://api.github.com/users/SalomonBrys/events{/privacy}","received_events_url":"https://api.github.com/users/SalomonBrys/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T16:31:48Z","updated_at":"2018-02-09T16:31:48Z","author_association":"OWNER","body":"No, it's not.\r\nThe tag is supposed to be used as a binding differntiator, not a factory argument.\r\n\r\nSorry ;)"}}
{"actor":{"display_login":"SalomonBrys"}}