{"action":"opened","number":233,"pull_request":{"url":"https://api.github.com/repos/mnapoli/PHP-DI/pulls/233","id":30616903,"html_url":"https://github.com/mnapoli/PHP-DI/pull/233","diff_url":"https://github.com/mnapoli/PHP-DI/pull/233.diff","patch_url":"https://github.com/mnapoli/PHP-DI/pull/233.patch","issue_url":"https://api.github.com/repos/mnapoli/PHP-DI/issues/233","number":233,"state":"open","locked":false,"title":"Add support for nested definitions","user":{"login":"mnapoli","id":720328,"avatar_url":"https://avatars.githubusercontent.com/u/720328?v=3","gravatar_id":"","url":"https://api.github.com/users/mnapoli","html_url":"https://github.com/mnapoli","followers_url":"https://api.github.com/users/mnapoli/followers","following_url":"https://api.github.com/users/mnapoli/following{/other_user}","gists_url":"https://api.github.com/users/mnapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mnapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnapoli/subscriptions","organizations_url":"https://api.github.com/users/mnapoli/orgs","repos_url":"https://api.github.com/users/mnapoli/repos","events_url":"https://api.github.com/users/mnapoli/events{/privacy}","received_events_url":"https://api.github.com/users/mnapoli/received_events","type":"User","site_admin":false},"body":"This PR addresses #208 to add support for nested definitions in:\r\n\r\n- [ ] object definitions (`DI\\object()`)\r\n- [ ] environment variables (`DI\\env()`)\r\n- [ ] arrays (`[]` or `DI\\add()`)\r\n\r\nIt also contains a refactoring to simplify the code: `DI\\link()` are now considered like any other nested definitions when resolved (before there was special support for this everywhere).","created_at":"2015-03-06T02:45:34Z","updated_at":"2015-03-06T02:45:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mnapoli/PHP-DI/pulls/233/commits","review_comments_url":"https://api.github.com/repos/mnapoli/PHP-DI/pulls/233/comments","review_comment_url":"https://api.github.com/repos/mnapoli/PHP-DI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mnapoli/PHP-DI/issues/233/comments","statuses_url":"https://api.github.com/repos/mnapoli/PHP-DI/statuses/d349594ef77f509de18170ffe7a386628a36eba7","head":{"label":"mnapoli:nested-definitions","ref":"nested-definitions","sha":"d349594ef77f509de18170ffe7a386628a36eba7","user":{"login":"mnapoli","id":720328,"avatar_url":"https://avatars.githubusercontent.com/u/720328?v=3","gravatar_id":"","url":"https://api.github.com/users/mnapoli","html_url":"https://github.com/mnapoli","followers_url":"https://api.github.com/users/mnapoli/followers","following_url":"https://api.github.com/users/mnapoli/following{/other_user}","gists_url":"https://api.github.com/users/mnapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mnapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnapoli/subscriptions","organizations_url":"https://api.github.com/users/mnapoli/orgs","repos_url":"https://api.github.com/users/mnapoli/repos","events_url":"https://api.github.com/users/mnapoli/events{/privacy}","received_events_url":"https://api.github.com/users/mnapoli/received_events","type":"User","site_admin":false},"repo":{"id":3751713,"name":"PHP-DI","full_name":"mnapoli/PHP-DI","owner":{"login":"mnapoli","id":720328,"avatar_url":"https://avatars.githubusercontent.com/u/720328?v=3","gravatar_id":"","url":"https://api.github.com/users/mnapoli","html_url":"https://github.com/mnapoli","followers_url":"https://api.github.com/users/mnapoli/followers","following_url":"https://api.github.com/users/mnapoli/following{/other_user}","gists_url":"https://api.github.com/users/mnapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mnapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnapoli/subscriptions","organizations_url":"https://api.github.com/users/mnapoli/orgs","repos_url":"https://api.github.com/users/mnapoli/repos","events_url":"https://api.github.com/users/mnapoli/events{/privacy}","received_events_url":"https://api.github.com/users/mnapoli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mnapoli/PHP-DI","description":"The dependency injection container for humans","fork":false,"url":"https://api.github.com/repos/mnapoli/PHP-DI","forks_url":"https://api.github.com/repos/mnapoli/PHP-DI/forks","keys_url":"https://api.github.com/repos/mnapoli/PHP-DI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mnapoli/PHP-DI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mnapoli/PHP-DI/teams","hooks_url":"https://api.github.com/repos/mnapoli/PHP-DI/hooks","issue_events_url":"https://api.github.com/repos/mnapoli/PHP-DI/issues/events{/number}","events_url":"https://api.github.com/repos/mnapoli/PHP-DI/events","assignees_url":"https://api.github.com/repos/mnapoli/PHP-DI/assignees{/user}","branches_url":"https://api.github.com/repos/mnapoli/PHP-DI/branches{/branch}","tags_url":"https://api.github.com/repos/mnapoli/PHP-DI/tags","blobs_url":"https://api.github.com/repos/mnapoli/PHP-DI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mnapoli/PHP-DI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mnapoli/PHP-DI/git/refs{/sha}","trees_url":"https://api.github.com/repos/mnapoli/PHP-DI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mnapoli/PHP-DI/statuses/{sha}","languages_url":"https://api.github.com/repos/mnapoli/PHP-DI/languages","stargazers_url":"https://api.github.com/repos/mnapoli/PHP-DI/stargazers","contributors_url":"https://api.github.com/repos/mnapoli/PHP-DI/contributors","subscribers_url":"https://api.github.com/repos/mnapoli/PHP-DI/subscribers","subscription_url":"https://api.github.com/repos/mnapoli/PHP-DI/subscription","commits_url":"https://api.github.com/repos/mnapoli/PHP-DI/commits{/sha}","git_commits_url":"https://api.github.com/repos/mnapoli/PHP-DI/git/commits{/sha}","comments_url":"https://api.github.com/repos/mnapoli/PHP-DI/comments{/number}","issue_comment_url":"https://api.github.com/repos/mnapoli/PHP-DI/issues/comments{/number}","contents_url":"https://api.github.com/repos/mnapoli/PHP-DI/contents/{+path}","compare_url":"https://api.github.com/repos/mnapoli/PHP-DI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mnapoli/PHP-DI/merges","archive_url":"https://api.github.com/repos/mnapoli/PHP-DI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mnapoli/PHP-DI/downloads","issues_url":"https://api.github.com/repos/mnapoli/PHP-DI/issues{/number}","pulls_url":"https://api.github.com/repos/mnapoli/PHP-DI/pulls{/number}","milestones_url":"https://api.github.com/repos/mnapoli/PHP-DI/milestones{/number}","notifications_url":"https://api.github.com/repos/mnapoli/PHP-DI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mnapoli/PHP-DI/labels{/name}","releases_url":"https://api.github.com/repos/mnapoli/PHP-DI/releases{/id}","created_at":"2012-03-17T23:59:36Z","updated_at":"2015-03-02T11:02:46Z","pushed_at":"2015-03-06T02:42:36Z","git_url":"git://github.com/mnapoli/PHP-DI.git","ssh_url":"git@github.com:mnapoli/PHP-DI.git","clone_url":"https://github.com/mnapoli/PHP-DI.git","svn_url":"https://github.com/mnapoli/PHP-DI","homepage":"php-di.org","size":5364,"stargazers_count":385,"watchers_count":385,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":56,"mirror_url":null,"open_issues_count":18,"forks":56,"open_issues":18,"watchers":385,"default_branch":"master"}},"base":{"label":"mnapoli:5.0","ref":"5.0","sha":"bc174fd0d0f33c3bc28b556240d7f4b6c520da1c","user":{"login":"mnapoli","id":720328,"avatar_url":"https://avatars.githubusercontent.com/u/720328?v=3","gravatar_id":"","url":"https://api.github.com/users/mnapoli","html_url":"https://github.com/mnapoli","followers_url":"https://api.github.com/users/mnapoli/followers","following_url":"https://api.github.com/users/mnapoli/following{/other_user}","gists_url":"https://api.github.com/users/mnapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mnapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnapoli/subscriptions","organizations_url":"https://api.github.com/users/mnapoli/orgs","repos_url":"https://api.github.com/users/mnapoli/repos","events_url":"https://api.github.com/users/mnapoli/events{/privacy}","received_events_url":"https://api.github.com/users/mnapoli/received_events","type":"User","site_admin":false},"repo":{"id":3751713,"name":"PHP-DI","full_name":"mnapoli/PHP-DI","owner":{"login":"mnapoli","id":720328,"avatar_url":"https://avatars.githubusercontent.com/u/720328?v=3","gravatar_id":"","url":"https://api.github.com/users/mnapoli","html_url":"https://github.com/mnapoli","followers_url":"https://api.github.com/users/mnapoli/followers","following_url":"https://api.github.com/users/mnapoli/following{/other_user}","gists_url":"https://api.github.com/users/mnapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mnapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnapoli/subscriptions","organizations_url":"https://api.github.com/users/mnapoli/orgs","repos_url":"https://api.github.com/users/mnapoli/repos","events_url":"https://api.github.com/users/mnapoli/events{/privacy}","received_events_url":"https://api.github.com/users/mnapoli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mnapoli/PHP-DI","description":"The dependency injection container for humans","fork":false,"url":"https://api.github.com/repos/mnapoli/PHP-DI","forks_url":"https://api.github.com/repos/mnapoli/PHP-DI/forks","keys_url":"https://api.github.com/repos/mnapoli/PHP-DI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mnapoli/PHP-DI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mnapoli/PHP-DI/teams","hooks_url":"https://api.github.com/repos/mnapoli/PHP-DI/hooks","issue_events_url":"https://api.github.com/repos/mnapoli/PHP-DI/issues/events{/number}","events_url":"https://api.github.com/repos/mnapoli/PHP-DI/events","assignees_url":"https://api.github.com/repos/mnapoli/PHP-DI/assignees{/user}","branches_url":"https://api.github.com/repos/mnapoli/PHP-DI/branches{/branch}","tags_url":"https://api.github.com/repos/mnapoli/PHP-DI/tags","blobs_url":"https://api.github.com/repos/mnapoli/PHP-DI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mnapoli/PHP-DI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mnapoli/PHP-DI/git/refs{/sha}","trees_url":"https://api.github.com/repos/mnapoli/PHP-DI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mnapoli/PHP-DI/statuses/{sha}","languages_url":"https://api.github.com/repos/mnapoli/PHP-DI/languages","stargazers_url":"https://api.github.com/repos/mnapoli/PHP-DI/stargazers","contributors_url":"https://api.github.com/repos/mnapoli/PHP-DI/contributors","subscribers_url":"https://api.github.com/repos/mnapoli/PHP-DI/subscribers","subscription_url":"https://api.github.com/repos/mnapoli/PHP-DI/subscription","commits_url":"https://api.github.com/repos/mnapoli/PHP-DI/commits{/sha}","git_commits_url":"https://api.github.com/repos/mnapoli/PHP-DI/git/commits{/sha}","comments_url":"https://api.github.com/repos/mnapoli/PHP-DI/comments{/number}","issue_comment_url":"https://api.github.com/repos/mnapoli/PHP-DI/issues/comments{/number}","contents_url":"https://api.github.com/repos/mnapoli/PHP-DI/contents/{+path}","compare_url":"https://api.github.com/repos/mnapoli/PHP-DI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mnapoli/PHP-DI/merges","archive_url":"https://api.github.com/repos/mnapoli/PHP-DI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mnapoli/PHP-DI/downloads","issues_url":"https://api.github.com/repos/mnapoli/PHP-DI/issues{/number}","pulls_url":"https://api.github.com/repos/mnapoli/PHP-DI/pulls{/number}","milestones_url":"https://api.github.com/repos/mnapoli/PHP-DI/milestones{/number}","notifications_url":"https://api.github.com/repos/mnapoli/PHP-DI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mnapoli/PHP-DI/labels{/name}","releases_url":"https://api.github.com/repos/mnapoli/PHP-DI/releases{/id}","created_at":"2012-03-17T23:59:36Z","updated_at":"2015-03-02T11:02:46Z","pushed_at":"2015-03-06T02:42:36Z","git_url":"git://github.com/mnapoli/PHP-DI.git","ssh_url":"git@github.com:mnapoli/PHP-DI.git","clone_url":"https://github.com/mnapoli/PHP-DI.git","svn_url":"https://github.com/mnapoli/PHP-DI","homepage":"php-di.org","size":5364,"stargazers_count":385,"watchers_count":385,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":56,"mirror_url":null,"open_issues_count":18,"forks":56,"open_issues":18,"watchers":385,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mnapoli/PHP-DI/pulls/233"},"html":{"href":"https://github.com/mnapoli/PHP-DI/pull/233"},"issue":{"href":"https://api.github.com/repos/mnapoli/PHP-DI/issues/233"},"comments":{"href":"https://api.github.com/repos/mnapoli/PHP-DI/issues/233/comments"},"review_comments":{"href":"https://api.github.com/repos/mnapoli/PHP-DI/pulls/233/comments"},"review_comment":{"href":"https://api.github.com/repos/mnapoli/PHP-DI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mnapoli/PHP-DI/pulls/233/commits"},"statuses":{"href":"https://api.github.com/repos/mnapoli/PHP-DI/statuses/d349594ef77f509de18170ffe7a386628a36eba7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":239,"deletions":148,"changed_files":12}}