{"action":"closed","issue":{"url":"https://api.github.com/repos/drgomesp/cargo/issues/2","repository_url":"https://api.github.com/repos/drgomesp/cargo","labels_url":"https://api.github.com/repos/drgomesp/cargo/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/drgomesp/cargo/issues/2/comments","events_url":"https://api.github.com/repos/drgomesp/cargo/issues/2/events","html_url":"https://github.com/drgomesp/cargo/issues/2","id":178986497,"number":2,"title":"Add support for arguments when registering services","user":{"login":"drgomesp","id":696982,"avatar_url":"https://avatars.githubusercontent.com/u/696982?v=3","gravatar_id":"","url":"https://api.github.com/users/drgomesp","html_url":"https://github.com/drgomesp","followers_url":"https://api.github.com/users/drgomesp/followers","following_url":"https://api.github.com/users/drgomesp/following{/other_user}","gists_url":"https://api.github.com/users/drgomesp/gists{/gist_id}","starred_url":"https://api.github.com/users/drgomesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drgomesp/subscriptions","organizations_url":"https://api.github.com/users/drgomesp/orgs","repos_url":"https://api.github.com/users/drgomesp/repos","events_url":"https://api.github.com/users/drgomesp/events{/privacy}","received_events_url":"https://api.github.com/users/drgomesp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/drgomesp/cargo/labels/feature","name":"feature","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"drgomesp","id":696982,"avatar_url":"https://avatars.githubusercontent.com/u/696982?v=3","gravatar_id":"","url":"https://api.github.com/users/drgomesp","html_url":"https://github.com/drgomesp","followers_url":"https://api.github.com/users/drgomesp/followers","following_url":"https://api.github.com/users/drgomesp/following{/other_user}","gists_url":"https://api.github.com/users/drgomesp/gists{/gist_id}","starred_url":"https://api.github.com/users/drgomesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drgomesp/subscriptions","organizations_url":"https://api.github.com/users/drgomesp/orgs","repos_url":"https://api.github.com/users/drgomesp/repos","events_url":"https://api.github.com/users/drgomesp/events{/privacy}","received_events_url":"https://api.github.com/users/drgomesp/received_events","type":"User","site_admin":false},"assignees":[{"login":"drgomesp","id":696982,"avatar_url":"https://avatars.githubusercontent.com/u/696982?v=3","gravatar_id":"","url":"https://api.github.com/users/drgomesp","html_url":"https://github.com/drgomesp","followers_url":"https://api.github.com/users/drgomesp/followers","following_url":"https://api.github.com/users/drgomesp/following{/other_user}","gists_url":"https://api.github.com/users/drgomesp/gists{/gist_id}","starred_url":"https://api.github.com/users/drgomesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drgomesp/subscriptions","organizations_url":"https://api.github.com/users/drgomesp/orgs","repos_url":"https://api.github.com/users/drgomesp/repos","events_url":"https://api.github.com/users/drgomesp/events{/privacy}","received_events_url":"https://api.github.com/users/drgomesp/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/drgomesp/cargo/milestones/1","html_url":"https://github.com/drgomesp/cargo/milestones/v1.0.0","labels_url":"https://api.github.com/repos/drgomesp/cargo/milestones/1/labels","id":2024052,"number":1,"title":"v1.0.0","description":"This release aims to provide the basic functionality in order to handle objects using the dependency injection pattern. Those functionalities should include:\r\n\r\n- Registering instances or definitions to the container\r\n- Adding instances to the container\r\n- Retrieving shared instances from the container\r\n- Creating service definitions \r\n- Support lazy loading of services","creator":{"login":"drgomesp","id":696982,"avatar_url":"https://avatars.githubusercontent.com/u/696982?v=3","gravatar_id":"","url":"https://api.github.com/users/drgomesp","html_url":"https://github.com/drgomesp","followers_url":"https://api.github.com/users/drgomesp/followers","following_url":"https://api.github.com/users/drgomesp/following{/other_user}","gists_url":"https://api.github.com/users/drgomesp/gists{/gist_id}","starred_url":"https://api.github.com/users/drgomesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drgomesp/subscriptions","organizations_url":"https://api.github.com/users/drgomesp/orgs","repos_url":"https://api.github.com/users/drgomesp/repos","events_url":"https://api.github.com/users/drgomesp/events{/privacy}","received_events_url":"https://api.github.com/users/drgomesp/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2016-09-23T10:49:20Z","updated_at":"2016-09-24T15:14:24Z","due_on":"2016-10-01T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-09-23T22:27:24Z","updated_at":"2016-09-24T15:14:24Z","closed_at":"2016-09-24T15:14:24Z","body":"When registering services, it should be possible to define arguments that are going to be automatically injected once the service gets created at runtime, as the example below:\r\n\r\n```go\r\ntype Bar struct {}\r\nfunc NewBar() *Bar {}\r\n\r\nbuilder := NewBuilder()\r\ndefinition := builder.Register(\"bar\", NewBar)\r\ndefinition.AddArguments(args ...interface{})\r\n```"}}
{"actor":{"display_login":"drgomesp"}}