{"action":"opened","number":520,"pull_request":{"url":"https://api.github.com/repos/thephpleague/flysystem/pulls/520","id":38972598,"html_url":"https://github.com/thephpleague/flysystem/pull/520","diff_url":"https://github.com/thephpleague/flysystem/pull/520.diff","patch_url":"https://github.com/thephpleague/flysystem/pull/520.patch","issue_url":"https://api.github.com/repos/thephpleague/flysystem/issues/520","number":520,"state":"open","locked":false,"title":"Allow retrieving the Filesystem from the Handler.","user":{"login":"RyanThompson","id":1099967,"avatar_url":"https://avatars.githubusercontent.com/u/1099967?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanThompson","html_url":"https://github.com/RyanThompson","followers_url":"https://api.github.com/users/RyanThompson/followers","following_url":"https://api.github.com/users/RyanThompson/following{/other_user}","gists_url":"https://api.github.com/users/RyanThompson/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanThompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanThompson/subscriptions","organizations_url":"https://api.github.com/users/RyanThompson/orgs","repos_url":"https://api.github.com/users/RyanThompson/repos","events_url":"https://api.github.com/users/RyanThompson/events{/privacy}","received_events_url":"https://api.github.com/users/RyanThompson/received_events","type":"User","site_admin":false},"body":"This is an absolute must for any project approaching complex!\r\n\r\nHere's one particular issue I ran into: https://github.com/anomalylabs/files-module/blob/master/src/Adapter/AdapterFilesystem.php#L193\r\n\r\nThat class wraps the Filesystem class ONLY to keep a database in sync. The disk MUST be set on the Filesystem because there are different disks (Laravel disks) using different adapters and I need to know if file1 is on disk A or B for instance when I sync. \r\n\r\nThe problem here is that now that I have a hard dependency on the disk (in construct) I have a hard dependency on the Filesystem. And when copying or moving from the mount manager - there very well may be a different source Filesystem. Sure, I could resolve it from the path, but it makes a ton more sense having it on the Handle. OOP FTW!\r\n\r\nThanks for considering!","created_at":"2015-07-01T11:28:12Z","updated_at":"2015-07-01T11:28:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thephpleague/flysystem/pulls/520/commits","review_comments_url":"https://api.github.com/repos/thephpleague/flysystem/pulls/520/comments","review_comment_url":"https://api.github.com/repos/thephpleague/flysystem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thephpleague/flysystem/issues/520/comments","statuses_url":"https://api.github.com/repos/thephpleague/flysystem/statuses/606729c912e6878fdeb101b97da7ac9503f7c169","head":{"label":"RyanThompson:patch-1","ref":"patch-1","sha":"606729c912e6878fdeb101b97da7ac9503f7c169","user":{"login":"RyanThompson","id":1099967,"avatar_url":"https://avatars.githubusercontent.com/u/1099967?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanThompson","html_url":"https://github.com/RyanThompson","followers_url":"https://api.github.com/users/RyanThompson/followers","following_url":"https://api.github.com/users/RyanThompson/following{/other_user}","gists_url":"https://api.github.com/users/RyanThompson/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanThompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanThompson/subscriptions","organizations_url":"https://api.github.com/users/RyanThompson/orgs","repos_url":"https://api.github.com/users/RyanThompson/repos","events_url":"https://api.github.com/users/RyanThompson/events{/privacy}","received_events_url":"https://api.github.com/users/RyanThompson/received_events","type":"User","site_admin":false},"repo":{"id":38367068,"name":"flysystem","full_name":"RyanThompson/flysystem","owner":{"login":"RyanThompson","id":1099967,"avatar_url":"https://avatars.githubusercontent.com/u/1099967?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanThompson","html_url":"https://github.com/RyanThompson","followers_url":"https://api.github.com/users/RyanThompson/followers","following_url":"https://api.github.com/users/RyanThompson/following{/other_user}","gists_url":"https://api.github.com/users/RyanThompson/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanThompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanThompson/subscriptions","organizations_url":"https://api.github.com/users/RyanThompson/orgs","repos_url":"https://api.github.com/users/RyanThompson/repos","events_url":"https://api.github.com/users/RyanThompson/events{/privacy}","received_events_url":"https://api.github.com/users/RyanThompson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RyanThompson/flysystem","description":"Abstraction for local and remote filesystems","fork":true,"url":"https://api.github.com/repos/RyanThompson/flysystem","forks_url":"https://api.github.com/repos/RyanThompson/flysystem/forks","keys_url":"https://api.github.com/repos/RyanThompson/flysystem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RyanThompson/flysystem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RyanThompson/flysystem/teams","hooks_url":"https://api.github.com/repos/RyanThompson/flysystem/hooks","issue_events_url":"https://api.github.com/repos/RyanThompson/flysystem/issues/events{/number}","events_url":"https://api.github.com/repos/RyanThompson/flysystem/events","assignees_url":"https://api.github.com/repos/RyanThompson/flysystem/assignees{/user}","branches_url":"https://api.github.com/repos/RyanThompson/flysystem/branches{/branch}","tags_url":"https://api.github.com/repos/RyanThompson/flysystem/tags","blobs_url":"https://api.github.com/repos/RyanThompson/flysystem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RyanThompson/flysystem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RyanThompson/flysystem/git/refs{/sha}","trees_url":"https://api.github.com/repos/RyanThompson/flysystem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RyanThompson/flysystem/statuses/{sha}","languages_url":"https://api.github.com/repos/RyanThompson/flysystem/languages","stargazers_url":"https://api.github.com/repos/RyanThompson/flysystem/stargazers","contributors_url":"https://api.github.com/repos/RyanThompson/flysystem/contributors","subscribers_url":"https://api.github.com/repos/RyanThompson/flysystem/subscribers","subscription_url":"https://api.github.com/repos/RyanThompson/flysystem/subscription","commits_url":"https://api.github.com/repos/RyanThompson/flysystem/commits{/sha}","git_commits_url":"https://api.github.com/repos/RyanThompson/flysystem/git/commits{/sha}","comments_url":"https://api.github.com/repos/RyanThompson/flysystem/comments{/number}","issue_comment_url":"https://api.github.com/repos/RyanThompson/flysystem/issues/comments{/number}","contents_url":"https://api.github.com/repos/RyanThompson/flysystem/contents/{+path}","compare_url":"https://api.github.com/repos/RyanThompson/flysystem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RyanThompson/flysystem/merges","archive_url":"https://api.github.com/repos/RyanThompson/flysystem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RyanThompson/flysystem/downloads","issues_url":"https://api.github.com/repos/RyanThompson/flysystem/issues{/number}","pulls_url":"https://api.github.com/repos/RyanThompson/flysystem/pulls{/number}","milestones_url":"https://api.github.com/repos/RyanThompson/flysystem/milestones{/number}","notifications_url":"https://api.github.com/repos/RyanThompson/flysystem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RyanThompson/flysystem/labels{/name}","releases_url":"https://api.github.com/repos/RyanThompson/flysystem/releases{/id}","created_at":"2015-07-01T11:18:48Z","updated_at":"2015-07-01T11:18:49Z","pushed_at":"2015-07-01T11:20:25Z","git_url":"git://github.com/RyanThompson/flysystem.git","ssh_url":"git@github.com:RyanThompson/flysystem.git","clone_url":"https://github.com/RyanThompson/flysystem.git","svn_url":"https://github.com/RyanThompson/flysystem","homepage":"http://flysystem.thephpleague.com","size":5848,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thephpleague:master","ref":"master","sha":"e9babd47e287992ece27cfc97b6e10bfac908943","user":{"login":"thephpleague","id":527621,"avatar_url":"https://avatars.githubusercontent.com/u/527621?v=3","gravatar_id":"","url":"https://api.github.com/users/thephpleague","html_url":"https://github.com/thephpleague","followers_url":"https://api.github.com/users/thephpleague/followers","following_url":"https://api.github.com/users/thephpleague/following{/other_user}","gists_url":"https://api.github.com/users/thephpleague/gists{/gist_id}","starred_url":"https://api.github.com/users/thephpleague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephpleague/subscriptions","organizations_url":"https://api.github.com/users/thephpleague/orgs","repos_url":"https://api.github.com/users/thephpleague/repos","events_url":"https://api.github.com/users/thephpleague/events{/privacy}","received_events_url":"https://api.github.com/users/thephpleague/received_events","type":"Organization","site_admin":false},"repo":{"id":13899674,"name":"flysystem","full_name":"thephpleague/flysystem","owner":{"login":"thephpleague","id":527621,"avatar_url":"https://avatars.githubusercontent.com/u/527621?v=3","gravatar_id":"","url":"https://api.github.com/users/thephpleague","html_url":"https://github.com/thephpleague","followers_url":"https://api.github.com/users/thephpleague/followers","following_url":"https://api.github.com/users/thephpleague/following{/other_user}","gists_url":"https://api.github.com/users/thephpleague/gists{/gist_id}","starred_url":"https://api.github.com/users/thephpleague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephpleague/subscriptions","organizations_url":"https://api.github.com/users/thephpleague/orgs","repos_url":"https://api.github.com/users/thephpleague/repos","events_url":"https://api.github.com/users/thephpleague/events{/privacy}","received_events_url":"https://api.github.com/users/thephpleague/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thephpleague/flysystem","description":"Abstraction for local and remote filesystems","fork":false,"url":"https://api.github.com/repos/thephpleague/flysystem","forks_url":"https://api.github.com/repos/thephpleague/flysystem/forks","keys_url":"https://api.github.com/repos/thephpleague/flysystem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thephpleague/flysystem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thephpleague/flysystem/teams","hooks_url":"https://api.github.com/repos/thephpleague/flysystem/hooks","issue_events_url":"https://api.github.com/repos/thephpleague/flysystem/issues/events{/number}","events_url":"https://api.github.com/repos/thephpleague/flysystem/events","assignees_url":"https://api.github.com/repos/thephpleague/flysystem/assignees{/user}","branches_url":"https://api.github.com/repos/thephpleague/flysystem/branches{/branch}","tags_url":"https://api.github.com/repos/thephpleague/flysystem/tags","blobs_url":"https://api.github.com/repos/thephpleague/flysystem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thephpleague/flysystem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thephpleague/flysystem/git/refs{/sha}","trees_url":"https://api.github.com/repos/thephpleague/flysystem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thephpleague/flysystem/statuses/{sha}","languages_url":"https://api.github.com/repos/thephpleague/flysystem/languages","stargazers_url":"https://api.github.com/repos/thephpleague/flysystem/stargazers","contributors_url":"https://api.github.com/repos/thephpleague/flysystem/contributors","subscribers_url":"https://api.github.com/repos/thephpleague/flysystem/subscribers","subscription_url":"https://api.github.com/repos/thephpleague/flysystem/subscription","commits_url":"https://api.github.com/repos/thephpleague/flysystem/commits{/sha}","git_commits_url":"https://api.github.com/repos/thephpleague/flysystem/git/commits{/sha}","comments_url":"https://api.github.com/repos/thephpleague/flysystem/comments{/number}","issue_comment_url":"https://api.github.com/repos/thephpleague/flysystem/issues/comments{/number}","contents_url":"https://api.github.com/repos/thephpleague/flysystem/contents/{+path}","compare_url":"https://api.github.com/repos/thephpleague/flysystem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thephpleague/flysystem/merges","archive_url":"https://api.github.com/repos/thephpleague/flysystem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thephpleague/flysystem/downloads","issues_url":"https://api.github.com/repos/thephpleague/flysystem/issues{/number}","pulls_url":"https://api.github.com/repos/thephpleague/flysystem/pulls{/number}","milestones_url":"https://api.github.com/repos/thephpleague/flysystem/milestones{/number}","notifications_url":"https://api.github.com/repos/thephpleague/flysystem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thephpleague/flysystem/labels{/name}","releases_url":"https://api.github.com/repos/thephpleague/flysystem/releases{/id}","created_at":"2013-10-27T11:07:22Z","updated_at":"2015-06-30T11:27:43Z","pushed_at":"2015-06-30T13:40:06Z","git_url":"git://github.com/thephpleague/flysystem.git","ssh_url":"git@github.com:thephpleague/flysystem.git","clone_url":"https://github.com/thephpleague/flysystem.git","svn_url":"https://github.com/thephpleague/flysystem","homepage":"http://flysystem.thephpleague.com","size":5848,"stargazers_count":2284,"watchers_count":2284,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":212,"mirror_url":null,"open_issues_count":26,"forks":212,"open_issues":26,"watchers":2284,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thephpleague/flysystem/pulls/520"},"html":{"href":"https://github.com/thephpleague/flysystem/pull/520"},"issue":{"href":"https://api.github.com/repos/thephpleague/flysystem/issues/520"},"comments":{"href":"https://api.github.com/repos/thephpleague/flysystem/issues/520/comments"},"review_comments":{"href":"https://api.github.com/repos/thephpleague/flysystem/pulls/520/comments"},"review_comment":{"href":"https://api.github.com/repos/thephpleague/flysystem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thephpleague/flysystem/pulls/520/commits"},"statuses":{"href":"https://api.github.com/repos/thephpleague/flysystem/statuses/606729c912e6878fdeb101b97da7ac9503f7c169"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":10,"deletions":0,"changed_files":1}}