{"action":"created","issue":{"url":"https://api.github.com/repos/ybainier/Hypodermic/issues/20","repository_url":"https://api.github.com/repos/ybainier/Hypodermic","labels_url":"https://api.github.com/repos/ybainier/Hypodermic/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/ybainier/Hypodermic/issues/20/comments","events_url":"https://api.github.com/repos/ybainier/Hypodermic/issues/20/events","html_url":"https://github.com/ybainier/Hypodermic/issues/20","id":153287508,"number":20,"title":"Type dependencies","user":{"login":"amitkanfer","id":2217774,"avatar_url":"https://avatars.githubusercontent.com/u/2217774?v=3","gravatar_id":"","url":"https://api.github.com/users/amitkanfer","html_url":"https://github.com/amitkanfer","followers_url":"https://api.github.com/users/amitkanfer/followers","following_url":"https://api.github.com/users/amitkanfer/following{/other_user}","gists_url":"https://api.github.com/users/amitkanfer/gists{/gist_id}","starred_url":"https://api.github.com/users/amitkanfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitkanfer/subscriptions","organizations_url":"https://api.github.com/users/amitkanfer/orgs","repos_url":"https://api.github.com/users/amitkanfer/repos","events_url":"https://api.github.com/users/amitkanfer/events{/privacy}","received_events_url":"https://api.github.com/users/amitkanfer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-05T17:59:56Z","updated_at":"2016-05-10T08:50:14Z","closed_at":null,"body":"Hello there,\r\nThanks for the very cool project.\r\n\r\nQuestion 1:\r\nI've been using the version you've published in the past, using the INJECT macro in order to declare dependencies of a type.\r\n\r\nSo for example:\r\nbuilder.registerType< Car>(CREATE(new Car(INJECT(IDriver))))->as< ICar>()->singleInstance();\r\n\r\nin this example, i need to be familiar only with the IDriver interface.\r\n\r\nI see that you changed this implementation and now the above should look something like this:\r\n\r\nbuilder.registerType< Car>().with< IDriver, Driver >().as< ICar>().singleInstance();\r\n\r\nright?\r\nBut now it seems like i need to be familiar with both IDriver and **Driver**\r\n\r\nAm i missing something?\r\n\r\nQuestion 2:\r\nDoes the new version compiles faster comparing to the previous release?\r\n\r\nThanks alot,\r\nAmit\r\n"},"comment":{"url":"https://api.github.com/repos/ybainier/Hypodermic/issues/comments/218096473","html_url":"https://github.com/ybainier/Hypodermic/issues/20#issuecomment-218096473","issue_url":"https://api.github.com/repos/ybainier/Hypodermic/issues/20","id":218096473,"user":{"login":"amitkanfer","id":2217774,"avatar_url":"https://avatars.githubusercontent.com/u/2217774?v=3","gravatar_id":"","url":"https://api.github.com/users/amitkanfer","html_url":"https://github.com/amitkanfer","followers_url":"https://api.github.com/users/amitkanfer/followers","following_url":"https://api.github.com/users/amitkanfer/following{/other_user}","gists_url":"https://api.github.com/users/amitkanfer/gists{/gist_id}","starred_url":"https://api.github.com/users/amitkanfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitkanfer/subscriptions","organizations_url":"https://api.github.com/users/amitkanfer/orgs","repos_url":"https://api.github.com/users/amitkanfer/repos","events_url":"https://api.github.com/users/amitkanfer/events{/privacy}","received_events_url":"https://api.github.com/users/amitkanfer/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T08:50:14Z","updated_at":"2016-05-10T08:50:14Z","body":"That solved it, thanks.\r\nOne more thing..\r\n\r\ni had a registration like this:\r\n        builder.registerType< CommandlineParser >(\r\n            [=](IComponentContext&) -> CommandlineParser*\r\n            {\r\n                return new CommandlineParser(argc, argv);\r\n            }).as< ICommandlineParser >().singleInstance();\r\n\r\nhow should i implement it now?"}}