{"action":"opened","issue":{"url":"https://api.github.com/repos/Swinject/Swinject/issues/208","repository_url":"https://api.github.com/repos/Swinject/Swinject","labels_url":"https://api.github.com/repos/Swinject/Swinject/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/Swinject/Swinject/issues/208/comments","events_url":"https://api.github.com/repos/Swinject/Swinject/issues/208/events","html_url":"https://github.com/Swinject/Swinject/issues/208","id":196495195,"number":208,"title":"Parent-child with arguments","user":{"login":"zefender","id":7287674,"avatar_url":"https://avatars.githubusercontent.com/u/7287674?v=3","gravatar_id":"","url":"https://api.github.com/users/zefender","html_url":"https://github.com/zefender","followers_url":"https://api.github.com/users/zefender/followers","following_url":"https://api.github.com/users/zefender/following{/other_user}","gists_url":"https://api.github.com/users/zefender/gists{/gist_id}","starred_url":"https://api.github.com/users/zefender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zefender/subscriptions","organizations_url":"https://api.github.com/users/zefender/orgs","repos_url":"https://api.github.com/users/zefender/repos","events_url":"https://api.github.com/users/zefender/events{/privacy}","received_events_url":"https://api.github.com/users/zefender/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-19T19:05:58Z","updated_at":"2016-12-19T19:05:58Z","closed_at":null,"body":"I have two parent-child related types.\r\n`container.register(ChildType.self) { resolver, param1 in\r\n            ChildTypeImpl(param1: param1)\r\n            }.initCompleted { resolver, child in\r\n                child.parent = resolver.resolve(ParentType.self, argument: param2) // haven't param2\r\n}\r\n        \r\ncontainer.register(ParentType.self) { resolver, param2 in\r\n            ParentTypeImpl(child: resolver.resolve(ChildType.self, argument: param1), param2) // haven't param 1\r\n }`\r\n\r\nEach of them have it's params, example above.\r\nHow to resolve it? \r\nI tried to add param1 to ParentType's registration, but how to access to it in the 'initCompleted' closure?\r\n\r\nThank you!"}}
{"actor":{"display_login":"zefender"}}