{"action":"created","comment":{"url":"https://api.github.com/repos/ray-di/Ray.Di/pulls/comments/32201163","id":32201163,"diff_hunk":"@@ -20,4 +20,12 @@\n      * @var bool\n      */\n     public $optional = false;","path":"src/Di/Inject.php","position":12,"original_position":12,"commit_id":"dd05088aedb823c39caa1ff1ef24c65c3b53ff19","original_commit_id":"d9b02c326fcbecd2904037dd78f9f4f28d0e9b07","user":{"login":"koriym","id":529021,"avatar_url":"https://avatars.githubusercontent.com/u/529021?v=3","gravatar_id":"","url":"https://api.github.com/users/koriym","html_url":"https://github.com/koriym","followers_url":"https://api.github.com/users/koriym/followers","following_url":"https://api.github.com/users/koriym/following{/other_user}","gists_url":"https://api.github.com/users/koriym/gists{/gist_id}","starred_url":"https://api.github.com/users/koriym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koriym/subscriptions","organizations_url":"https://api.github.com/users/koriym/orgs","repos_url":"https://api.github.com/users/koriym/repos","events_url":"https://api.github.com/users/koriym/events{/privacy}","received_events_url":"https://api.github.com/users/koriym/received_events","type":"User","site_admin":false},"body":"> The annotation parser check if the annotation constructor has arguments, if so then we will pass the value array, otherwise will try to inject values into public properties directly:\r\n\r\nhttp://doctrine-common.readthedocs.org/en/latest/reference/annotations.html#inject-annotation-values\r\n\r\nThis is the spec of Doctrine annotation.","created_at":"2015-06-11T08:54:46Z","updated_at":"2015-06-11T08:54:46Z","html_url":"https://github.com/ray-di/Ray.Di/pull/128#discussion_r32201163","pull_request_url":"https://api.github.com/repos/ray-di/Ray.Di/pulls/128","_links":{"self":{"href":"https://api.github.com/repos/ray-di/Ray.Di/pulls/comments/32201163"},"html":{"href":"https://github.com/ray-di/Ray.Di/pull/128#discussion_r32201163"},"pull_request":{"href":"https://api.github.com/repos/ray-di/Ray.Di/pulls/128"}}},"pull_request":{"url":"https://api.github.com/repos/ray-di/Ray.Di/pulls/128","id":37279023,"html_url":"https://github.com/ray-di/Ray.Di/pull/128","diff_url":"https://github.com/ray-di/Ray.Di/pull/128.diff","patch_url":"https://github.com/ray-di/Ray.Di/pull/128.patch","issue_url":"https://api.github.com/repos/ray-di/Ray.Di/issues/128","number":128,"state":"open","locked":false,"title":"Adding an InjectInterface","user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"body":"In order to to create Annotations that are able to behave like `@Inject`\r\n\r\nThe use case is combining `@Inject` and `@Named` into custom annotations that can also hold more information about the class that needs to be instantiated.","created_at":"2015-06-09T17:37:03Z","updated_at":"2015-06-11T08:54:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1a04668d0abd23e440454c9fc2eae6654ede481","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ray-di/Ray.Di/pulls/128/commits","review_comments_url":"https://api.github.com/repos/ray-di/Ray.Di/pulls/128/comments","review_comment_url":"https://api.github.com/repos/ray-di/Ray.Di/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ray-di/Ray.Di/issues/128/comments","statuses_url":"https://api.github.com/repos/ray-di/Ray.Di/statuses/dd05088aedb823c39caa1ff1ef24c65c3b53ff19","head":{"label":"lorenzo:2.x-inject-interface","ref":"2.x-inject-interface","sha":"dd05088aedb823c39caa1ff1ef24c65c3b53ff19","user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"repo":{"id":37147270,"name":"Ray.Di","full_name":"lorenzo/Ray.Di","owner":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lorenzo/Ray.Di","description":"Guice style dependency injection framework for PHP","fork":true,"url":"https://api.github.com/repos/lorenzo/Ray.Di","forks_url":"https://api.github.com/repos/lorenzo/Ray.Di/forks","keys_url":"https://api.github.com/repos/lorenzo/Ray.Di/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lorenzo/Ray.Di/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lorenzo/Ray.Di/teams","hooks_url":"https://api.github.com/repos/lorenzo/Ray.Di/hooks","issue_events_url":"https://api.github.com/repos/lorenzo/Ray.Di/issues/events{/number}","events_url":"https://api.github.com/repos/lorenzo/Ray.Di/events","assignees_url":"https://api.github.com/repos/lorenzo/Ray.Di/assignees{/user}","branches_url":"https://api.github.com/repos/lorenzo/Ray.Di/branches{/branch}","tags_url":"https://api.github.com/repos/lorenzo/Ray.Di/tags","blobs_url":"https://api.github.com/repos/lorenzo/Ray.Di/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lorenzo/Ray.Di/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lorenzo/Ray.Di/git/refs{/sha}","trees_url":"https://api.github.com/repos/lorenzo/Ray.Di/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lorenzo/Ray.Di/statuses/{sha}","languages_url":"https://api.github.com/repos/lorenzo/Ray.Di/languages","stargazers_url":"https://api.github.com/repos/lorenzo/Ray.Di/stargazers","contributors_url":"https://api.github.com/repos/lorenzo/Ray.Di/contributors","subscribers_url":"https://api.github.com/repos/lorenzo/Ray.Di/subscribers","subscription_url":"https://api.github.com/repos/lorenzo/Ray.Di/subscription","commits_url":"https://api.github.com/repos/lorenzo/Ray.Di/commits{/sha}","git_commits_url":"https://api.github.com/repos/lorenzo/Ray.Di/git/commits{/sha}","comments_url":"https://api.github.com/repos/lorenzo/Ray.Di/comments{/number}","issue_comment_url":"https://api.github.com/repos/lorenzo/Ray.Di/issues/comments{/number}","contents_url":"https://api.github.com/repos/lorenzo/Ray.Di/contents/{+path}","compare_url":"https://api.github.com/repos/lorenzo/Ray.Di/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lorenzo/Ray.Di/merges","archive_url":"https://api.github.com/repos/lorenzo/Ray.Di/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lorenzo/Ray.Di/downloads","issues_url":"https://api.github.com/repos/lorenzo/Ray.Di/issues{/number}","pulls_url":"https://api.github.com/repos/lorenzo/Ray.Di/pulls{/number}","milestones_url":"https://api.github.com/repos/lorenzo/Ray.Di/milestones{/number}","notifications_url":"https://api.github.com/repos/lorenzo/Ray.Di/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lorenzo/Ray.Di/labels{/name}","releases_url":"https://api.github.com/repos/lorenzo/Ray.Di/releases{/id}","created_at":"2015-06-09T17:29:56Z","updated_at":"2015-06-09T17:29:56Z","pushed_at":"2015-06-09T19:42:22Z","git_url":"git://github.com/lorenzo/Ray.Di.git","ssh_url":"git@github.com:lorenzo/Ray.Di.git","clone_url":"https://github.com/lorenzo/Ray.Di.git","svn_url":"https://github.com/lorenzo/Ray.Di","homepage":"","size":1450,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"2.x"}},"base":{"label":"ray-di:2.x","ref":"2.x","sha":"fb36510912dcd13a0081277e494d4f1e903f58f5","user":{"login":"ray-di","id":10275660,"avatar_url":"https://avatars.githubusercontent.com/u/10275660?v=3","gravatar_id":"","url":"https://api.github.com/users/ray-di","html_url":"https://github.com/ray-di","followers_url":"https://api.github.com/users/ray-di/followers","following_url":"https://api.github.com/users/ray-di/following{/other_user}","gists_url":"https://api.github.com/users/ray-di/gists{/gist_id}","starred_url":"https://api.github.com/users/ray-di/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ray-di/subscriptions","organizations_url":"https://api.github.com/users/ray-di/orgs","repos_url":"https://api.github.com/users/ray-di/repos","events_url":"https://api.github.com/users/ray-di/events{/privacy}","received_events_url":"https://api.github.com/users/ray-di/received_events","type":"Organization","site_admin":false},"repo":{"id":2129984,"name":"Ray.Di","full_name":"ray-di/Ray.Di","owner":{"login":"ray-di","id":10275660,"avatar_url":"https://avatars.githubusercontent.com/u/10275660?v=3","gravatar_id":"","url":"https://api.github.com/users/ray-di","html_url":"https://github.com/ray-di","followers_url":"https://api.github.com/users/ray-di/followers","following_url":"https://api.github.com/users/ray-di/following{/other_user}","gists_url":"https://api.github.com/users/ray-di/gists{/gist_id}","starred_url":"https://api.github.com/users/ray-di/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ray-di/subscriptions","organizations_url":"https://api.github.com/users/ray-di/orgs","repos_url":"https://api.github.com/users/ray-di/repos","events_url":"https://api.github.com/users/ray-di/events{/privacy}","received_events_url":"https://api.github.com/users/ray-di/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ray-di/Ray.Di","description":"Guice style dependency injection framework for PHP","fork":false,"url":"https://api.github.com/repos/ray-di/Ray.Di","forks_url":"https://api.github.com/repos/ray-di/Ray.Di/forks","keys_url":"https://api.github.com/repos/ray-di/Ray.Di/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ray-di/Ray.Di/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ray-di/Ray.Di/teams","hooks_url":"https://api.github.com/repos/ray-di/Ray.Di/hooks","issue_events_url":"https://api.github.com/repos/ray-di/Ray.Di/issues/events{/number}","events_url":"https://api.github.com/repos/ray-di/Ray.Di/events","assignees_url":"https://api.github.com/repos/ray-di/Ray.Di/assignees{/user}","branches_url":"https://api.github.com/repos/ray-di/Ray.Di/branches{/branch}","tags_url":"https://api.github.com/repos/ray-di/Ray.Di/tags","blobs_url":"https://api.github.com/repos/ray-di/Ray.Di/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ray-di/Ray.Di/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ray-di/Ray.Di/git/refs{/sha}","trees_url":"https://api.github.com/repos/ray-di/Ray.Di/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ray-di/Ray.Di/statuses/{sha}","languages_url":"https://api.github.com/repos/ray-di/Ray.Di/languages","stargazers_url":"https://api.github.com/repos/ray-di/Ray.Di/stargazers","contributors_url":"https://api.github.com/repos/ray-di/Ray.Di/contributors","subscribers_url":"https://api.github.com/repos/ray-di/Ray.Di/subscribers","subscription_url":"https://api.github.com/repos/ray-di/Ray.Di/subscription","commits_url":"https://api.github.com/repos/ray-di/Ray.Di/commits{/sha}","git_commits_url":"https://api.github.com/repos/ray-di/Ray.Di/git/commits{/sha}","comments_url":"https://api.github.com/repos/ray-di/Ray.Di/comments{/number}","issue_comment_url":"https://api.github.com/repos/ray-di/Ray.Di/issues/comments{/number}","contents_url":"https://api.github.com/repos/ray-di/Ray.Di/contents/{+path}","compare_url":"https://api.github.com/repos/ray-di/Ray.Di/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ray-di/Ray.Di/merges","archive_url":"https://api.github.com/repos/ray-di/Ray.Di/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ray-di/Ray.Di/downloads","issues_url":"https://api.github.com/repos/ray-di/Ray.Di/issues{/number}","pulls_url":"https://api.github.com/repos/ray-di/Ray.Di/pulls{/number}","milestones_url":"https://api.github.com/repos/ray-di/Ray.Di/milestones{/number}","notifications_url":"https://api.github.com/repos/ray-di/Ray.Di/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ray-di/Ray.Di/labels{/name}","releases_url":"https://api.github.com/repos/ray-di/Ray.Di/releases{/id}","created_at":"2011-07-30T20:01:13Z","updated_at":"2015-06-03T05:44:06Z","pushed_at":"2015-06-09T19:42:22Z","git_url":"git://github.com/ray-di/Ray.Di.git","ssh_url":"git@github.com:ray-di/Ray.Di.git","clone_url":"https://github.com/ray-di/Ray.Di.git","svn_url":"https://github.com/ray-di/Ray.Di","homepage":"","size":2969,"stargazers_count":88,"watchers_count":88,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":1,"forks":27,"open_issues":1,"watchers":88,"default_branch":"2.x"}},"_links":{"self":{"href":"https://api.github.com/repos/ray-di/Ray.Di/pulls/128"},"html":{"href":"https://github.com/ray-di/Ray.Di/pull/128"},"issue":{"href":"https://api.github.com/repos/ray-di/Ray.Di/issues/128"},"comments":{"href":"https://api.github.com/repos/ray-di/Ray.Di/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/ray-di/Ray.Di/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/ray-di/Ray.Di/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ray-di/Ray.Di/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/ray-di/Ray.Di/statuses/dd05088aedb823c39caa1ff1ef24c65c3b53ff19"}}}}