{"action":"created","comment":{"url":"https://api.github.com/repos/puli/repository/pulls/comments/47341243","id":47341243,"diff_hunk":"@@ -52,4 +53,29 @@ protected function sanitizePath($path)\n \n         return Path::canonicalize($path);\n     }\n+\n+    /**\n+     * @param string $path\n+     *\n+     * @return resource","path":"src/AbstractRepository.php","position":16,"original_position":16,"commit_id":"2d7cc68558751f22297698ba4564f71dff745c48","original_commit_id":"2d7cc68558751f22297698ba4564f71dff745c48","user":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"body":"This return type seems to be wrong","created_at":"2015-12-11T10:33:35Z","updated_at":"2015-12-11T10:33:35Z","html_url":"https://github.com/puli/repository/pull/64#discussion_r47341243","pull_request_url":"https://api.github.com/repos/puli/repository/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/puli/repository/pulls/comments/47341243"},"html":{"href":"https://github.com/puli/repository/pull/64#discussion_r47341243"},"pull_request":{"href":"https://api.github.com/repos/puli/repository/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/puli/repository/pulls/64","id":46775443,"html_url":"https://github.com/puli/repository/pull/64","diff_url":"https://github.com/puli/repository/pull/64.diff","patch_url":"https://github.com/puli/repository/pull/64.patch","issue_url":"https://api.github.com/repos/puli/repository/issues/64","number":64,"state":"open","locked":false,"title":"Implement auto-resolvment of directories links","user":{"login":"tgalopin","id":1651494,"avatar_url":"https://avatars.githubusercontent.com/u/1651494?v=3","gravatar_id":"","url":"https://api.github.com/users/tgalopin","html_url":"https://github.com/tgalopin","followers_url":"https://api.github.com/users/tgalopin/followers","following_url":"https://api.github.com/users/tgalopin/following{/other_user}","gists_url":"https://api.github.com/users/tgalopin/gists{/gist_id}","starred_url":"https://api.github.com/users/tgalopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgalopin/subscriptions","organizations_url":"https://api.github.com/users/tgalopin/orgs","repos_url":"https://api.github.com/users/tgalopin/repos","events_url":"https://api.github.com/users/tgalopin/events{/privacy}","received_events_url":"https://api.github.com/users/tgalopin/received_events","type":"User","site_admin":false},"body":"Fix https://github.com/puli/issues/issues/125.\r\n\r\nAs suggested by @webmozart, it should be possible to access the children of a directory link seemlessly, ie something like:\r\n\r\n``` php\r\n$repo = new InMemoryRepository();\r\n$repo->add('/dir', new DirectoryResource('/some/directory'));\r\n$repo->add('/dir-link', new LinkResource('/dir'));\r\n$repo->get('/dir-link/file');\r\n```\r\n\r\nThis PR aims to implement this.","created_at":"2015-10-05T12:39:57Z","updated_at":"2015-12-11T10:33:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4215df31750b9eeced52616d09a66232b123fbe9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puli/repository/pulls/64/commits","review_comments_url":"https://api.github.com/repos/puli/repository/pulls/64/comments","review_comment_url":"https://api.github.com/repos/puli/repository/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puli/repository/issues/64/comments","statuses_url":"https://api.github.com/repos/puli/repository/statuses/2d7cc68558751f22297698ba4564f71dff745c48","head":{"label":"tgalopin:auto-resolvment-links","ref":"auto-resolvment-links","sha":"2d7cc68558751f22297698ba4564f71dff745c48","user":{"login":"tgalopin","id":1651494,"avatar_url":"https://avatars.githubusercontent.com/u/1651494?v=3","gravatar_id":"","url":"https://api.github.com/users/tgalopin","html_url":"https://github.com/tgalopin","followers_url":"https://api.github.com/users/tgalopin/followers","following_url":"https://api.github.com/users/tgalopin/following{/other_user}","gists_url":"https://api.github.com/users/tgalopin/gists{/gist_id}","starred_url":"https://api.github.com/users/tgalopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgalopin/subscriptions","organizations_url":"https://api.github.com/users/tgalopin/orgs","repos_url":"https://api.github.com/users/tgalopin/repos","events_url":"https://api.github.com/users/tgalopin/events{/privacy}","received_events_url":"https://api.github.com/users/tgalopin/received_events","type":"User","site_admin":false},"repo":{"id":37941499,"name":"repository","full_name":"tgalopin/repository","owner":{"login":"tgalopin","id":1651494,"avatar_url":"https://avatars.githubusercontent.com/u/1651494?v=3","gravatar_id":"","url":"https://api.github.com/users/tgalopin","html_url":"https://github.com/tgalopin","followers_url":"https://api.github.com/users/tgalopin/followers","following_url":"https://api.github.com/users/tgalopin/following{/other_user}","gists_url":"https://api.github.com/users/tgalopin/gists{/gist_id}","starred_url":"https://api.github.com/users/tgalopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgalopin/subscriptions","organizations_url":"https://api.github.com/users/tgalopin/orgs","repos_url":"https://api.github.com/users/tgalopin/repos","events_url":"https://api.github.com/users/tgalopin/events{/privacy}","received_events_url":"https://api.github.com/users/tgalopin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tgalopin/repository","description":"A filesystem-like repository for storing arbitrary resources.","fork":true,"url":"https://api.github.com/repos/tgalopin/repository","forks_url":"https://api.github.com/repos/tgalopin/repository/forks","keys_url":"https://api.github.com/repos/tgalopin/repository/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgalopin/repository/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgalopin/repository/teams","hooks_url":"https://api.github.com/repos/tgalopin/repository/hooks","issue_events_url":"https://api.github.com/repos/tgalopin/repository/issues/events{/number}","events_url":"https://api.github.com/repos/tgalopin/repository/events","assignees_url":"https://api.github.com/repos/tgalopin/repository/assignees{/user}","branches_url":"https://api.github.com/repos/tgalopin/repository/branches{/branch}","tags_url":"https://api.github.com/repos/tgalopin/repository/tags","blobs_url":"https://api.github.com/repos/tgalopin/repository/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgalopin/repository/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgalopin/repository/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgalopin/repository/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgalopin/repository/statuses/{sha}","languages_url":"https://api.github.com/repos/tgalopin/repository/languages","stargazers_url":"https://api.github.com/repos/tgalopin/repository/stargazers","contributors_url":"https://api.github.com/repos/tgalopin/repository/contributors","subscribers_url":"https://api.github.com/repos/tgalopin/repository/subscribers","subscription_url":"https://api.github.com/repos/tgalopin/repository/subscription","commits_url":"https://api.github.com/repos/tgalopin/repository/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgalopin/repository/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgalopin/repository/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgalopin/repository/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgalopin/repository/contents/{+path}","compare_url":"https://api.github.com/repos/tgalopin/repository/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgalopin/repository/merges","archive_url":"https://api.github.com/repos/tgalopin/repository/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgalopin/repository/downloads","issues_url":"https://api.github.com/repos/tgalopin/repository/issues{/number}","pulls_url":"https://api.github.com/repos/tgalopin/repository/pulls{/number}","milestones_url":"https://api.github.com/repos/tgalopin/repository/milestones{/number}","notifications_url":"https://api.github.com/repos/tgalopin/repository/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgalopin/repository/labels{/name}","releases_url":"https://api.github.com/repos/tgalopin/repository/releases{/id}","created_at":"2015-06-23T19:55:13Z","updated_at":"2015-06-23T19:55:14Z","pushed_at":"2015-12-11T08:56:38Z","git_url":"git://github.com/tgalopin/repository.git","ssh_url":"git@github.com:tgalopin/repository.git","clone_url":"https://github.com/tgalopin/repository.git","svn_url":"https://github.com/tgalopin/repository","homepage":"","size":1257,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"1.0"}},"base":{"label":"puli:1.0","ref":"1.0","sha":"ca57a41809296418a3d9df4f9956786116f74258","user":{"login":"puli","id":9706065,"avatar_url":"https://avatars.githubusercontent.com/u/9706065?v=3","gravatar_id":"","url":"https://api.github.com/users/puli","html_url":"https://github.com/puli","followers_url":"https://api.github.com/users/puli/followers","following_url":"https://api.github.com/users/puli/following{/other_user}","gists_url":"https://api.github.com/users/puli/gists{/gist_id}","starred_url":"https://api.github.com/users/puli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puli/subscriptions","organizations_url":"https://api.github.com/users/puli/orgs","repos_url":"https://api.github.com/users/puli/repos","events_url":"https://api.github.com/users/puli/events{/privacy}","received_events_url":"https://api.github.com/users/puli/received_events","type":"Organization","site_admin":false},"repo":{"id":16406011,"name":"repository","full_name":"puli/repository","owner":{"login":"puli","id":9706065,"avatar_url":"https://avatars.githubusercontent.com/u/9706065?v=3","gravatar_id":"","url":"https://api.github.com/users/puli","html_url":"https://github.com/puli","followers_url":"https://api.github.com/users/puli/followers","following_url":"https://api.github.com/users/puli/following{/other_user}","gists_url":"https://api.github.com/users/puli/gists{/gist_id}","starred_url":"https://api.github.com/users/puli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puli/subscriptions","organizations_url":"https://api.github.com/users/puli/orgs","repos_url":"https://api.github.com/users/puli/repos","events_url":"https://api.github.com/users/puli/events{/privacy}","received_events_url":"https://api.github.com/users/puli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puli/repository","description":"A filesystem-like repository for storing arbitrary resources.","fork":false,"url":"https://api.github.com/repos/puli/repository","forks_url":"https://api.github.com/repos/puli/repository/forks","keys_url":"https://api.github.com/repos/puli/repository/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puli/repository/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puli/repository/teams","hooks_url":"https://api.github.com/repos/puli/repository/hooks","issue_events_url":"https://api.github.com/repos/puli/repository/issues/events{/number}","events_url":"https://api.github.com/repos/puli/repository/events","assignees_url":"https://api.github.com/repos/puli/repository/assignees{/user}","branches_url":"https://api.github.com/repos/puli/repository/branches{/branch}","tags_url":"https://api.github.com/repos/puli/repository/tags","blobs_url":"https://api.github.com/repos/puli/repository/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puli/repository/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puli/repository/git/refs{/sha}","trees_url":"https://api.github.com/repos/puli/repository/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puli/repository/statuses/{sha}","languages_url":"https://api.github.com/repos/puli/repository/languages","stargazers_url":"https://api.github.com/repos/puli/repository/stargazers","contributors_url":"https://api.github.com/repos/puli/repository/contributors","subscribers_url":"https://api.github.com/repos/puli/repository/subscribers","subscription_url":"https://api.github.com/repos/puli/repository/subscription","commits_url":"https://api.github.com/repos/puli/repository/commits{/sha}","git_commits_url":"https://api.github.com/repos/puli/repository/git/commits{/sha}","comments_url":"https://api.github.com/repos/puli/repository/comments{/number}","issue_comment_url":"https://api.github.com/repos/puli/repository/issues/comments{/number}","contents_url":"https://api.github.com/repos/puli/repository/contents/{+path}","compare_url":"https://api.github.com/repos/puli/repository/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puli/repository/merges","archive_url":"https://api.github.com/repos/puli/repository/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puli/repository/downloads","issues_url":"https://api.github.com/repos/puli/repository/issues{/number}","pulls_url":"https://api.github.com/repos/puli/repository/pulls{/number}","milestones_url":"https://api.github.com/repos/puli/repository/milestones{/number}","notifications_url":"https://api.github.com/repos/puli/repository/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puli/repository/labels{/name}","releases_url":"https://api.github.com/repos/puli/repository/releases{/id}","created_at":"2014-01-31T11:14:13Z","updated_at":"2015-11-29T04:20:50Z","pushed_at":"2015-12-11T08:56:38Z","git_url":"git://github.com/puli/repository.git","ssh_url":"git@github.com:puli/repository.git","clone_url":"https://github.com/puli/repository.git","svn_url":"https://github.com/puli/repository","homepage":"http://puli.io","size":1299,"stargazers_count":389,"watchers_count":389,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":6,"forks":24,"open_issues":6,"watchers":389,"default_branch":"1.0"}},"_links":{"self":{"href":"https://api.github.com/repos/puli/repository/pulls/64"},"html":{"href":"https://github.com/puli/repository/pull/64"},"issue":{"href":"https://api.github.com/repos/puli/repository/issues/64"},"comments":{"href":"https://api.github.com/repos/puli/repository/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/puli/repository/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/puli/repository/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puli/repository/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/puli/repository/statuses/2d7cc68558751f22297698ba4564f71dff745c48"}}}}