{"action":"opened","issue":{"url":"https://api.github.com/repos/Level-2/Dice/issues/102","repository_url":"https://api.github.com/repos/Level-2/Dice","labels_url":"https://api.github.com/repos/Level-2/Dice/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/Level-2/Dice/issues/102/comments","events_url":"https://api.github.com/repos/Level-2/Dice/issues/102/events","html_url":"https://github.com/Level-2/Dice/issues/102","id":131718838,"number":102,"title":"instanceOf and closures","user":{"login":"aaronpeterson","id":541713,"avatar_url":"https://avatars.githubusercontent.com/u/541713?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronpeterson","html_url":"https://github.com/aaronpeterson","followers_url":"https://api.github.com/users/aaronpeterson/followers","following_url":"https://api.github.com/users/aaronpeterson/following{/other_user}","gists_url":"https://api.github.com/users/aaronpeterson/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronpeterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronpeterson/subscriptions","organizations_url":"https://api.github.com/users/aaronpeterson/orgs","repos_url":"https://api.github.com/users/aaronpeterson/repos","events_url":"https://api.github.com/users/aaronpeterson/events{/privacy}","received_events_url":"https://api.github.com/users/aaronpeterson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-05T18:32:23Z","updated_at":"2016-02-05T18:32:23Z","closed_at":null,"body":"I like to key my dependency injection by interface FQCN.  Sometimes I need to process some logic about configuration, system configuration, etc before I return an instance; or otherwise customize instantiation at the injector level.\r\n\r\nThis is covered by #82 but I'd be curious why instanceOf can't be a closure.  I was going to submit a PR but wondered if I was missing something; major performance hit, etc.\r\n\r\nLove how simple and sweet Dice is.  Thank you."}}