{"action":"created","comment":{"url":"https://api.github.com/repos/broadway/broadway/pulls/comments/126298592","pull_request_review_id":48771728,"id":126298592,"diff_hunk":"@@ -0,0 +1,60 @@\n+<?php\n+\n+/*\n+ * This file is part of the broadway/broadway package.\n+ *\n+ * (c) Qandidate.com <opensource@qandidate.com>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace Broadway\\CommandHandling;\n+\n+use Broadway\\CommandHandling\\Exception\\ClosureParameterNotAnObjectException;\n+\n+/**\n+ * Using this class command can be registered with closure\n+ */\n+class ClosureCommandHandler implements CommandHandler\n+{\n+    /**\n+     * @var \\Closure[]\n+     */\n+    private $handlers;","path":"src/Broadway/CommandHandling/ClosureCommandHandler.php","position":24,"original_position":24,"commit_id":"b71cf6fa324fa4eca038d6a249fd5035361441e9","original_commit_id":"b71cf6fa324fa4eca038d6a249fd5035361441e9","user":{"login":"othillo","id":2786663,"avatar_url":"https://avatars0.githubusercontent.com/u/2786663?v=3","gravatar_id":"","url":"https://api.github.com/users/othillo","html_url":"https://github.com/othillo","followers_url":"https://api.github.com/users/othillo/followers","following_url":"https://api.github.com/users/othillo/following{/other_user}","gists_url":"https://api.github.com/users/othillo/gists{/gist_id}","starred_url":"https://api.github.com/users/othillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/othillo/subscriptions","organizations_url":"https://api.github.com/users/othillo/orgs","repos_url":"https://api.github.com/users/othillo/repos","events_url":"https://api.github.com/users/othillo/events{/privacy}","received_events_url":"https://api.github.com/users/othillo/received_events","type":"User","site_admin":false},"body":"private $handlers = [];","created_at":"2017-07-09T08:02:00Z","updated_at":"2017-07-09T08:02:00Z","html_url":"https://github.com/broadway/broadway/pull/286#discussion_r126298592","pull_request_url":"https://api.github.com/repos/broadway/broadway/pulls/286","_links":{"self":{"href":"https://api.github.com/repos/broadway/broadway/pulls/comments/126298592"},"html":{"href":"https://github.com/broadway/broadway/pull/286#discussion_r126298592"},"pull_request":{"href":"https://api.github.com/repos/broadway/broadway/pulls/286"}}},"pull_request":{"url":"https://api.github.com/repos/broadway/broadway/pulls/286","id":98461787,"html_url":"https://github.com/broadway/broadway/pull/286","diff_url":"https://github.com/broadway/broadway/pull/286.diff","patch_url":"https://github.com/broadway/broadway/pull/286.patch","issue_url":"https://api.github.com/repos/broadway/broadway/issues/286","number":286,"state":"open","locked":false,"title":"Closure command handler","user":{"login":"francescotrucchia","id":59121,"avatar_url":"https://avatars2.githubusercontent.com/u/59121?v=3","gravatar_id":"","url":"https://api.github.com/users/francescotrucchia","html_url":"https://github.com/francescotrucchia","followers_url":"https://api.github.com/users/francescotrucchia/followers","following_url":"https://api.github.com/users/francescotrucchia/following{/other_user}","gists_url":"https://api.github.com/users/francescotrucchia/gists{/gist_id}","starred_url":"https://api.github.com/users/francescotrucchia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francescotrucchia/subscriptions","organizations_url":"https://api.github.com/users/francescotrucchia/orgs","repos_url":"https://api.github.com/users/francescotrucchia/repos","events_url":"https://api.github.com/users/francescotrucchia/events{/privacy}","received_events_url":"https://api.github.com/users/francescotrucchia/received_events","type":"User","site_admin":false},"body":"This command handler simplify the mapping of command on class. Instead of using method mapping it use closure. In this way it's also possibile to add new command handler runtime.","created_at":"2016-12-18T01:44:11Z","updated_at":"2017-07-09T08:02:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb1d81277df5d69801440c38d182d81aa7c48c15","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/broadway/broadway/pulls/286/commits","review_comments_url":"https://api.github.com/repos/broadway/broadway/pulls/286/comments","review_comment_url":"https://api.github.com/repos/broadway/broadway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/broadway/broadway/issues/286/comments","statuses_url":"https://api.github.com/repos/broadway/broadway/statuses/b71cf6fa324fa4eca038d6a249fd5035361441e9","head":{"label":"francescotrucchia:closure-command-handler","ref":"closure-command-handler","sha":"b71cf6fa324fa4eca038d6a249fd5035361441e9","user":{"login":"francescotrucchia","id":59121,"avatar_url":"https://avatars2.githubusercontent.com/u/59121?v=3","gravatar_id":"","url":"https://api.github.com/users/francescotrucchia","html_url":"https://github.com/francescotrucchia","followers_url":"https://api.github.com/users/francescotrucchia/followers","following_url":"https://api.github.com/users/francescotrucchia/following{/other_user}","gists_url":"https://api.github.com/users/francescotrucchia/gists{/gist_id}","starred_url":"https://api.github.com/users/francescotrucchia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francescotrucchia/subscriptions","organizations_url":"https://api.github.com/users/francescotrucchia/orgs","repos_url":"https://api.github.com/users/francescotrucchia/repos","events_url":"https://api.github.com/users/francescotrucchia/events{/privacy}","received_events_url":"https://api.github.com/users/francescotrucchia/received_events","type":"User","site_admin":false},"repo":{"id":75978727,"name":"broadway","full_name":"francescotrucchia/broadway","owner":{"login":"francescotrucchia","id":59121,"avatar_url":"https://avatars2.githubusercontent.com/u/59121?v=3","gravatar_id":"","url":"https://api.github.com/users/francescotrucchia","html_url":"https://github.com/francescotrucchia","followers_url":"https://api.github.com/users/francescotrucchia/followers","following_url":"https://api.github.com/users/francescotrucchia/following{/other_user}","gists_url":"https://api.github.com/users/francescotrucchia/gists{/gist_id}","starred_url":"https://api.github.com/users/francescotrucchia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francescotrucchia/subscriptions","organizations_url":"https://api.github.com/users/francescotrucchia/orgs","repos_url":"https://api.github.com/users/francescotrucchia/repos","events_url":"https://api.github.com/users/francescotrucchia/events{/privacy}","received_events_url":"https://api.github.com/users/francescotrucchia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/francescotrucchia/broadway","description":"Infrastructure and testing helpers for creating CQRS and event sourced applications.","fork":true,"url":"https://api.github.com/repos/francescotrucchia/broadway","forks_url":"https://api.github.com/repos/francescotrucchia/broadway/forks","keys_url":"https://api.github.com/repos/francescotrucchia/broadway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/francescotrucchia/broadway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/francescotrucchia/broadway/teams","hooks_url":"https://api.github.com/repos/francescotrucchia/broadway/hooks","issue_events_url":"https://api.github.com/repos/francescotrucchia/broadway/issues/events{/number}","events_url":"https://api.github.com/repos/francescotrucchia/broadway/events","assignees_url":"https://api.github.com/repos/francescotrucchia/broadway/assignees{/user}","branches_url":"https://api.github.com/repos/francescotrucchia/broadway/branches{/branch}","tags_url":"https://api.github.com/repos/francescotrucchia/broadway/tags","blobs_url":"https://api.github.com/repos/francescotrucchia/broadway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/francescotrucchia/broadway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/francescotrucchia/broadway/git/refs{/sha}","trees_url":"https://api.github.com/repos/francescotrucchia/broadway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/francescotrucchia/broadway/statuses/{sha}","languages_url":"https://api.github.com/repos/francescotrucchia/broadway/languages","stargazers_url":"https://api.github.com/repos/francescotrucchia/broadway/stargazers","contributors_url":"https://api.github.com/repos/francescotrucchia/broadway/contributors","subscribers_url":"https://api.github.com/repos/francescotrucchia/broadway/subscribers","subscription_url":"https://api.github.com/repos/francescotrucchia/broadway/subscription","commits_url":"https://api.github.com/repos/francescotrucchia/broadway/commits{/sha}","git_commits_url":"https://api.github.com/repos/francescotrucchia/broadway/git/commits{/sha}","comments_url":"https://api.github.com/repos/francescotrucchia/broadway/comments{/number}","issue_comment_url":"https://api.github.com/repos/francescotrucchia/broadway/issues/comments{/number}","contents_url":"https://api.github.com/repos/francescotrucchia/broadway/contents/{+path}","compare_url":"https://api.github.com/repos/francescotrucchia/broadway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/francescotrucchia/broadway/merges","archive_url":"https://api.github.com/repos/francescotrucchia/broadway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/francescotrucchia/broadway/downloads","issues_url":"https://api.github.com/repos/francescotrucchia/broadway/issues{/number}","pulls_url":"https://api.github.com/repos/francescotrucchia/broadway/pulls{/number}","milestones_url":"https://api.github.com/repos/francescotrucchia/broadway/milestones{/number}","notifications_url":"https://api.github.com/repos/francescotrucchia/broadway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/francescotrucchia/broadway/labels{/name}","releases_url":"https://api.github.com/repos/francescotrucchia/broadway/releases{/id}","deployments_url":"https://api.github.com/repos/francescotrucchia/broadway/deployments","created_at":"2016-12-08T22:00:29Z","updated_at":"2016-12-08T22:00:30Z","pushed_at":"2017-07-08T22:30:44Z","git_url":"git://github.com/francescotrucchia/broadway.git","ssh_url":"git@github.com:francescotrucchia/broadway.git","clone_url":"https://github.com/francescotrucchia/broadway.git","svn_url":"https://github.com/francescotrucchia/broadway","homepage":"http://labs.qandidate.com/blog/2014/08/26/broadway-our-cqrs-es-framework-open-sourced/","size":546,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"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":"master"}},"base":{"label":"broadway:master","ref":"master","sha":"1686619397fcb02ecf0eb3b91b7f33ee93ab1d22","user":{"login":"broadway","id":7906457,"avatar_url":"https://avatars2.githubusercontent.com/u/7906457?v=3","gravatar_id":"","url":"https://api.github.com/users/broadway","html_url":"https://github.com/broadway","followers_url":"https://api.github.com/users/broadway/followers","following_url":"https://api.github.com/users/broadway/following{/other_user}","gists_url":"https://api.github.com/users/broadway/gists{/gist_id}","starred_url":"https://api.github.com/users/broadway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadway/subscriptions","organizations_url":"https://api.github.com/users/broadway/orgs","repos_url":"https://api.github.com/users/broadway/repos","events_url":"https://api.github.com/users/broadway/events{/privacy}","received_events_url":"https://api.github.com/users/broadway/received_events","type":"Organization","site_admin":false},"repo":{"id":23352973,"name":"broadway","full_name":"broadway/broadway","owner":{"login":"broadway","id":7906457,"avatar_url":"https://avatars2.githubusercontent.com/u/7906457?v=3","gravatar_id":"","url":"https://api.github.com/users/broadway","html_url":"https://github.com/broadway","followers_url":"https://api.github.com/users/broadway/followers","following_url":"https://api.github.com/users/broadway/following{/other_user}","gists_url":"https://api.github.com/users/broadway/gists{/gist_id}","starred_url":"https://api.github.com/users/broadway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadway/subscriptions","organizations_url":"https://api.github.com/users/broadway/orgs","repos_url":"https://api.github.com/users/broadway/repos","events_url":"https://api.github.com/users/broadway/events{/privacy}","received_events_url":"https://api.github.com/users/broadway/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/broadway/broadway","description":"Infrastructure and testing helpers for creating CQRS and event sourced applications.","fork":false,"url":"https://api.github.com/repos/broadway/broadway","forks_url":"https://api.github.com/repos/broadway/broadway/forks","keys_url":"https://api.github.com/repos/broadway/broadway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadway/broadway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadway/broadway/teams","hooks_url":"https://api.github.com/repos/broadway/broadway/hooks","issue_events_url":"https://api.github.com/repos/broadway/broadway/issues/events{/number}","events_url":"https://api.github.com/repos/broadway/broadway/events","assignees_url":"https://api.github.com/repos/broadway/broadway/assignees{/user}","branches_url":"https://api.github.com/repos/broadway/broadway/branches{/branch}","tags_url":"https://api.github.com/repos/broadway/broadway/tags","blobs_url":"https://api.github.com/repos/broadway/broadway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadway/broadway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadway/broadway/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadway/broadway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadway/broadway/statuses/{sha}","languages_url":"https://api.github.com/repos/broadway/broadway/languages","stargazers_url":"https://api.github.com/repos/broadway/broadway/stargazers","contributors_url":"https://api.github.com/repos/broadway/broadway/contributors","subscribers_url":"https://api.github.com/repos/broadway/broadway/subscribers","subscription_url":"https://api.github.com/repos/broadway/broadway/subscription","commits_url":"https://api.github.com/repos/broadway/broadway/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadway/broadway/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadway/broadway/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadway/broadway/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadway/broadway/contents/{+path}","compare_url":"https://api.github.com/repos/broadway/broadway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadway/broadway/merges","archive_url":"https://api.github.com/repos/broadway/broadway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadway/broadway/downloads","issues_url":"https://api.github.com/repos/broadway/broadway/issues{/number}","pulls_url":"https://api.github.com/repos/broadway/broadway/pulls{/number}","milestones_url":"https://api.github.com/repos/broadway/broadway/milestones{/number}","notifications_url":"https://api.github.com/repos/broadway/broadway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadway/broadway/labels{/name}","releases_url":"https://api.github.com/repos/broadway/broadway/releases{/id}","deployments_url":"https://api.github.com/repos/broadway/broadway/deployments","created_at":"2014-08-26T13:40:55Z","updated_at":"2017-07-08T17:04:47Z","pushed_at":"2017-07-08T22:30:46Z","git_url":"git://github.com/broadway/broadway.git","ssh_url":"git@github.com:broadway/broadway.git","clone_url":"https://github.com/broadway/broadway.git","svn_url":"https://github.com/broadway/broadway","homepage":"http://labs.qandidate.com/blog/2014/08/26/broadway-our-cqrs-es-framework-open-sourced/","size":542,"stargazers_count":929,"watchers_count":929,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":147,"mirror_url":null,"open_issues_count":16,"forks":147,"open_issues":16,"watchers":929,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/broadway/broadway/pulls/286"},"html":{"href":"https://github.com/broadway/broadway/pull/286"},"issue":{"href":"https://api.github.com/repos/broadway/broadway/issues/286"},"comments":{"href":"https://api.github.com/repos/broadway/broadway/issues/286/comments"},"review_comments":{"href":"https://api.github.com/repos/broadway/broadway/pulls/286/comments"},"review_comment":{"href":"https://api.github.com/repos/broadway/broadway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/broadway/broadway/pulls/286/commits"},"statuses":{"href":"https://api.github.com/repos/broadway/broadway/statuses/b71cf6fa324fa4eca038d6a249fd5035361441e9"}}}}
{"actor":{"display_login":"othillo"}}