{"action":"created","comment":{"url":"https://api.github.com/repos/thephpleague/flysystem/pulls/comments/33256257","id":33256257,"diff_hunk":"@@ -95,4 +95,20 @@ public function getPath()\n     {\n         return $this->path;\n     }\n+\n+    /**\n+     * Plugins pass-through.\n+     *\n+     * @param string $method\n+     * @param array  $arguments\n+     *\n+     * @return mixed\n+     */\n+    public function __call($method, array $arguments)\n+    {\n+        array_unshift($arguments, $this->path);\n+        $callback = [$this->filesystem, $method];\n+\n+        return call_user_func_array($callback, $arguments);","path":"src/Handler.php","position":18,"original_position":18,"commit_id":"4b8cfc509eefc8bd4639e672875890fc501a68f3","original_commit_id":"4b8cfc509eefc8bd4639e672875890fc501a68f3","user":{"login":"CarsonF","id":932566,"avatar_url":"https://avatars.githubusercontent.com/u/932566?v=3","gravatar_id":"","url":"https://api.github.com/users/CarsonF","html_url":"https://github.com/CarsonF","followers_url":"https://api.github.com/users/CarsonF/followers","following_url":"https://api.github.com/users/CarsonF/following{/other_user}","gists_url":"https://api.github.com/users/CarsonF/gists{/gist_id}","starred_url":"https://api.github.com/users/CarsonF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarsonF/subscriptions","organizations_url":"https://api.github.com/users/CarsonF/orgs","repos_url":"https://api.github.com/users/CarsonF/repos","events_url":"https://api.github.com/users/CarsonF/events{/privacy}","received_events_url":"https://api.github.com/users/CarsonF/received_events","type":"User","site_admin":false},"body":"@frankdejonge which exception and message should be thrown?","created_at":"2015-06-25T13:50:14Z","updated_at":"2015-06-25T13:50:14Z","html_url":"https://github.com/thephpleague/flysystem/pull/417#discussion_r33256257","pull_request_url":"https://api.github.com/repos/thephpleague/flysystem/pulls/417","_links":{"self":{"href":"https://api.github.com/repos/thephpleague/flysystem/pulls/comments/33256257"},"html":{"href":"https://github.com/thephpleague/flysystem/pull/417#discussion_r33256257"},"pull_request":{"href":"https://api.github.com/repos/thephpleague/flysystem/pulls/417"}}},"pull_request":{"url":"https://api.github.com/repos/thephpleague/flysystem/pulls/417","id":29031617,"html_url":"https://github.com/thephpleague/flysystem/pull/417","diff_url":"https://github.com/thephpleague/flysystem/pull/417.diff","patch_url":"https://github.com/thephpleague/flysystem/pull/417.patch","issue_url":"https://api.github.com/repos/thephpleague/flysystem/issues/417","number":417,"state":"open","locked":false,"title":"Add magic call to Handler for Plugin support","user":{"login":"CarsonF","id":932566,"avatar_url":"https://avatars.githubusercontent.com/u/932566?v=3","gravatar_id":"","url":"https://api.github.com/users/CarsonF","html_url":"https://github.com/CarsonF","followers_url":"https://api.github.com/users/CarsonF/followers","following_url":"https://api.github.com/users/CarsonF/following{/other_user}","gists_url":"https://api.github.com/users/CarsonF/gists{/gist_id}","starred_url":"https://api.github.com/users/CarsonF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarsonF/subscriptions","organizations_url":"https://api.github.com/users/CarsonF/orgs","repos_url":"https://api.github.com/users/CarsonF/repos","events_url":"https://api.github.com/users/CarsonF/events{/privacy}","received_events_url":"https://api.github.com/users/CarsonF/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-10T18:26:37Z","updated_at":"2015-06-25T13:50:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f6913209034fdae52365a627271300065422b4c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thephpleague/flysystem/pulls/417/commits","review_comments_url":"https://api.github.com/repos/thephpleague/flysystem/pulls/417/comments","review_comment_url":"https://api.github.com/repos/thephpleague/flysystem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thephpleague/flysystem/issues/417/comments","statuses_url":"https://api.github.com/repos/thephpleague/flysystem/statuses/4b8cfc509eefc8bd4639e672875890fc501a68f3","head":{"label":"CarsonF:feature/handler-plugins","ref":"feature/handler-plugins","sha":"4b8cfc509eefc8bd4639e672875890fc501a68f3","user":{"login":"CarsonF","id":932566,"avatar_url":"https://avatars.githubusercontent.com/u/932566?v=3","gravatar_id":"","url":"https://api.github.com/users/CarsonF","html_url":"https://github.com/CarsonF","followers_url":"https://api.github.com/users/CarsonF/followers","following_url":"https://api.github.com/users/CarsonF/following{/other_user}","gists_url":"https://api.github.com/users/CarsonF/gists{/gist_id}","starred_url":"https://api.github.com/users/CarsonF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarsonF/subscriptions","organizations_url":"https://api.github.com/users/CarsonF/orgs","repos_url":"https://api.github.com/users/CarsonF/repos","events_url":"https://api.github.com/users/CarsonF/events{/privacy}","received_events_url":"https://api.github.com/users/CarsonF/received_events","type":"User","site_admin":false},"repo":{"id":29640381,"name":"flysystem","full_name":"CarsonF/flysystem","owner":{"login":"CarsonF","id":932566,"avatar_url":"https://avatars.githubusercontent.com/u/932566?v=3","gravatar_id":"","url":"https://api.github.com/users/CarsonF","html_url":"https://github.com/CarsonF","followers_url":"https://api.github.com/users/CarsonF/followers","following_url":"https://api.github.com/users/CarsonF/following{/other_user}","gists_url":"https://api.github.com/users/CarsonF/gists{/gist_id}","starred_url":"https://api.github.com/users/CarsonF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarsonF/subscriptions","organizations_url":"https://api.github.com/users/CarsonF/orgs","repos_url":"https://api.github.com/users/CarsonF/repos","events_url":"https://api.github.com/users/CarsonF/events{/privacy}","received_events_url":"https://api.github.com/users/CarsonF/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CarsonF/flysystem","description":"Abstraction for local and remote filesystems","fork":true,"url":"https://api.github.com/repos/CarsonF/flysystem","forks_url":"https://api.github.com/repos/CarsonF/flysystem/forks","keys_url":"https://api.github.com/repos/CarsonF/flysystem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CarsonF/flysystem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CarsonF/flysystem/teams","hooks_url":"https://api.github.com/repos/CarsonF/flysystem/hooks","issue_events_url":"https://api.github.com/repos/CarsonF/flysystem/issues/events{/number}","events_url":"https://api.github.com/repos/CarsonF/flysystem/events","assignees_url":"https://api.github.com/repos/CarsonF/flysystem/assignees{/user}","branches_url":"https://api.github.com/repos/CarsonF/flysystem/branches{/branch}","tags_url":"https://api.github.com/repos/CarsonF/flysystem/tags","blobs_url":"https://api.github.com/repos/CarsonF/flysystem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CarsonF/flysystem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CarsonF/flysystem/git/refs{/sha}","trees_url":"https://api.github.com/repos/CarsonF/flysystem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CarsonF/flysystem/statuses/{sha}","languages_url":"https://api.github.com/repos/CarsonF/flysystem/languages","stargazers_url":"https://api.github.com/repos/CarsonF/flysystem/stargazers","contributors_url":"https://api.github.com/repos/CarsonF/flysystem/contributors","subscribers_url":"https://api.github.com/repos/CarsonF/flysystem/subscribers","subscription_url":"https://api.github.com/repos/CarsonF/flysystem/subscription","commits_url":"https://api.github.com/repos/CarsonF/flysystem/commits{/sha}","git_commits_url":"https://api.github.com/repos/CarsonF/flysystem/git/commits{/sha}","comments_url":"https://api.github.com/repos/CarsonF/flysystem/comments{/number}","issue_comment_url":"https://api.github.com/repos/CarsonF/flysystem/issues/comments{/number}","contents_url":"https://api.github.com/repos/CarsonF/flysystem/contents/{+path}","compare_url":"https://api.github.com/repos/CarsonF/flysystem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CarsonF/flysystem/merges","archive_url":"https://api.github.com/repos/CarsonF/flysystem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CarsonF/flysystem/downloads","issues_url":"https://api.github.com/repos/CarsonF/flysystem/issues{/number}","pulls_url":"https://api.github.com/repos/CarsonF/flysystem/pulls{/number}","milestones_url":"https://api.github.com/repos/CarsonF/flysystem/milestones{/number}","notifications_url":"https://api.github.com/repos/CarsonF/flysystem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CarsonF/flysystem/labels{/name}","releases_url":"https://api.github.com/repos/CarsonF/flysystem/releases{/id}","created_at":"2015-01-22T01:46:25Z","updated_at":"2015-02-11T17:06:48Z","pushed_at":"2015-02-11T17:06:48Z","git_url":"git://github.com/CarsonF/flysystem.git","ssh_url":"git@github.com:CarsonF/flysystem.git","clone_url":"https://github.com/CarsonF/flysystem.git","svn_url":"https://github.com/CarsonF/flysystem","homepage":"http://flysystem.thephpleague.com","size":1816,"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":"f31699eafc5299f93ae55f9ca48cfe4f4695b8b7","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-25T00:23:24Z","pushed_at":"2015-06-19T01:07:37Z","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":5745,"stargazers_count":2278,"watchers_count":2278,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":210,"mirror_url":null,"open_issues_count":24,"forks":210,"open_issues":24,"watchers":2278,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thephpleague/flysystem/pulls/417"},"html":{"href":"https://github.com/thephpleague/flysystem/pull/417"},"issue":{"href":"https://api.github.com/repos/thephpleague/flysystem/issues/417"},"comments":{"href":"https://api.github.com/repos/thephpleague/flysystem/issues/417/comments"},"review_comments":{"href":"https://api.github.com/repos/thephpleague/flysystem/pulls/417/comments"},"review_comment":{"href":"https://api.github.com/repos/thephpleague/flysystem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thephpleague/flysystem/pulls/417/commits"},"statuses":{"href":"https://api.github.com/repos/thephpleague/flysystem/statuses/4b8cfc509eefc8bd4639e672875890fc501a68f3"}}}}