{"action":"created","comment":{"url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/comments/231974609","pull_request_review_id":173061668,"id":231974609,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTk3NDYwOQ==","diff_hunk":"@@ -0,0 +1,52 @@\n+<?php\n+\n+declare(strict_types=1);\n+\n+namespace App\\Http\\Controllers;\n+\n+use Acme\\Article\\Article;\n+use Acme\\Article\\Repository\\Exception\\ArticleNotFound;\n+use Acme\\Article\\UseCase\\GetArticle\\GetArticleCommand;\n+use Acme\\Article\\UseCase\\GetArticle\\GetArticleHandler;\n+use Acme\\Article\\ValueObject\\ArticleID;\n+\n+class GetArticleController extends Controller\n+{\n+    /**\n+     * @var GetArticleHandler\n+     */\n+    private $handler;\n+\n+    public function __construct(GetArticleHandler $handler)\n+    {\n+        $this->handler = $handler;\n+    }\n+\n+    public function __invoke(string $id)\n+    {\n+        $command = new GetArticleCommand(ArticleID::fromUUID($id));\n+\n+        try {\n+            $article = $this->handler->__invoke($command);\n+        } catch (ArticleNotFound $e) {","path":"app/Http/Controllers/GetArticleController.php","position":31,"original_position":31,"commit_id":"00a7ee43d29d2ed335d239b6632bb26d16a6694c","original_commit_id":"00a7ee43d29d2ed335d239b6632bb26d16a6694c","user":{"login":"damianopetrungaro","id":8950503,"node_id":"MDQ6VXNlcjg5NTA1MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/8950503?v=4","gravatar_id":"","url":"https://api.github.com/users/damianopetrungaro","html_url":"https://github.com/damianopetrungaro","followers_url":"https://api.github.com/users/damianopetrungaro/followers","following_url":"https://api.github.com/users/damianopetrungaro/following{/other_user}","gists_url":"https://api.github.com/users/damianopetrungaro/gists{/gist_id}","starred_url":"https://api.github.com/users/damianopetrungaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianopetrungaro/subscriptions","organizations_url":"https://api.github.com/users/damianopetrungaro/orgs","repos_url":"https://api.github.com/users/damianopetrungaro/repos","events_url":"https://api.github.com/users/damianopetrungaro/events{/privacy}","received_events_url":"https://api.github.com/users/damianopetrungaro/received_events","type":"User","site_admin":false},"body":"Please add a Logger to log the exception.\r\nThis will be helpful when sth will fail.","created_at":"2018-11-08T16:46:22Z","updated_at":"2018-11-08T16:52:55Z","html_url":"https://github.com/laravelday2018workshop/the_scientist/pull/5#discussion_r231974609","pull_request_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/5","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/comments/231974609"},"html":{"href":"https://github.com/laravelday2018workshop/the_scientist/pull/5#discussion_r231974609"},"pull_request":{"href":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/5","id":229434221,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NDM0MjIx","html_url":"https://github.com/laravelday2018workshop/the_scientist/pull/5","diff_url":"https://github.com/laravelday2018workshop/the_scientist/pull/5.diff","patch_url":"https://github.com/laravelday2018workshop/the_scientist/pull/5.patch","issue_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/issues/5","number":5,"state":"open","locked":false,"title":"Get article","user":{"login":"cnastasi","id":2204693,"node_id":"MDQ6VXNlcjIyMDQ2OTM=","avatar_url":"https://avatars3.githubusercontent.com/u/2204693?v=4","gravatar_id":"","url":"https://api.github.com/users/cnastasi","html_url":"https://github.com/cnastasi","followers_url":"https://api.github.com/users/cnastasi/followers","following_url":"https://api.github.com/users/cnastasi/following{/other_user}","gists_url":"https://api.github.com/users/cnastasi/gists{/gist_id}","starred_url":"https://api.github.com/users/cnastasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnastasi/subscriptions","organizations_url":"https://api.github.com/users/cnastasi/orgs","repos_url":"https://api.github.com/users/cnastasi/repos","events_url":"https://api.github.com/users/cnastasi/events{/privacy}","received_events_url":"https://api.github.com/users/cnastasi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-08T16:43:39Z","updated_at":"2018-11-08T16:52:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f82a21615f2e4e1cee80df1e34cbf74dcf3fc2d7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/5/commits","review_comments_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/5/comments","review_comment_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/issues/5/comments","statuses_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/statuses/00a7ee43d29d2ed335d239b6632bb26d16a6694c","head":{"label":"laravelday2018workshop:get_article","ref":"get_article","sha":"00a7ee43d29d2ed335d239b6632bb26d16a6694c","user":{"login":"laravelday2018workshop","id":44378209,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0Mzc4MjA5","avatar_url":"https://avatars2.githubusercontent.com/u/44378209?v=4","gravatar_id":"","url":"https://api.github.com/users/laravelday2018workshop","html_url":"https://github.com/laravelday2018workshop","followers_url":"https://api.github.com/users/laravelday2018workshop/followers","following_url":"https://api.github.com/users/laravelday2018workshop/following{/other_user}","gists_url":"https://api.github.com/users/laravelday2018workshop/gists{/gist_id}","starred_url":"https://api.github.com/users/laravelday2018workshop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravelday2018workshop/subscriptions","organizations_url":"https://api.github.com/users/laravelday2018workshop/orgs","repos_url":"https://api.github.com/users/laravelday2018workshop/repos","events_url":"https://api.github.com/users/laravelday2018workshop/events{/privacy}","received_events_url":"https://api.github.com/users/laravelday2018workshop/received_events","type":"Organization","site_admin":false},"repo":{"id":154197353,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxOTczNTM=","name":"the_scientist","full_name":"laravelday2018workshop/the_scientist","private":false,"owner":{"login":"laravelday2018workshop","id":44378209,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0Mzc4MjA5","avatar_url":"https://avatars2.githubusercontent.com/u/44378209?v=4","gravatar_id":"","url":"https://api.github.com/users/laravelday2018workshop","html_url":"https://github.com/laravelday2018workshop","followers_url":"https://api.github.com/users/laravelday2018workshop/followers","following_url":"https://api.github.com/users/laravelday2018workshop/following{/other_user}","gists_url":"https://api.github.com/users/laravelday2018workshop/gists{/gist_id}","starred_url":"https://api.github.com/users/laravelday2018workshop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravelday2018workshop/subscriptions","organizations_url":"https://api.github.com/users/laravelday2018workshop/orgs","repos_url":"https://api.github.com/users/laravelday2018workshop/repos","events_url":"https://api.github.com/users/laravelday2018workshop/events{/privacy}","received_events_url":"https://api.github.com/users/laravelday2018workshop/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/laravelday2018workshop/the_scientist","description":"Piattaforma per pubblicazione articoli scientifici","fork":false,"url":"https://api.github.com/repos/laravelday2018workshop/the_scientist","forks_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/forks","keys_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/teams","hooks_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/hooks","issue_events_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/issues/events{/number}","events_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/events","assignees_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/assignees{/user}","branches_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/branches{/branch}","tags_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/tags","blobs_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/statuses/{sha}","languages_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/languages","stargazers_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/stargazers","contributors_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/contributors","subscribers_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/subscribers","subscription_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/subscription","commits_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/contents/{+path}","compare_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/merges","archive_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/downloads","issues_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/issues{/number}","pulls_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls{/number}","milestones_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/milestones{/number}","notifications_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/labels{/name}","releases_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/releases{/id}","deployments_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/deployments","created_at":"2018-10-22T18:45:21Z","updated_at":"2018-11-05T23:21:05Z","pushed_at":"2018-11-08T16:43:40Z","git_url":"git://github.com/laravelday2018workshop/the_scientist.git","ssh_url":"git@github.com:laravelday2018workshop/the_scientist.git","clone_url":"https://github.com/laravelday2018workshop/the_scientist.git","svn_url":"https://github.com/laravelday2018workshop/the_scientist","homepage":null,"size":226,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"laravelday2018workshop:master","ref":"master","sha":"d0ecfb42820e7ea75d34def951c500aa69267de3","user":{"login":"laravelday2018workshop","id":44378209,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0Mzc4MjA5","avatar_url":"https://avatars2.githubusercontent.com/u/44378209?v=4","gravatar_id":"","url":"https://api.github.com/users/laravelday2018workshop","html_url":"https://github.com/laravelday2018workshop","followers_url":"https://api.github.com/users/laravelday2018workshop/followers","following_url":"https://api.github.com/users/laravelday2018workshop/following{/other_user}","gists_url":"https://api.github.com/users/laravelday2018workshop/gists{/gist_id}","starred_url":"https://api.github.com/users/laravelday2018workshop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravelday2018workshop/subscriptions","organizations_url":"https://api.github.com/users/laravelday2018workshop/orgs","repos_url":"https://api.github.com/users/laravelday2018workshop/repos","events_url":"https://api.github.com/users/laravelday2018workshop/events{/privacy}","received_events_url":"https://api.github.com/users/laravelday2018workshop/received_events","type":"Organization","site_admin":false},"repo":{"id":154197353,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxOTczNTM=","name":"the_scientist","full_name":"laravelday2018workshop/the_scientist","private":false,"owner":{"login":"laravelday2018workshop","id":44378209,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0Mzc4MjA5","avatar_url":"https://avatars2.githubusercontent.com/u/44378209?v=4","gravatar_id":"","url":"https://api.github.com/users/laravelday2018workshop","html_url":"https://github.com/laravelday2018workshop","followers_url":"https://api.github.com/users/laravelday2018workshop/followers","following_url":"https://api.github.com/users/laravelday2018workshop/following{/other_user}","gists_url":"https://api.github.com/users/laravelday2018workshop/gists{/gist_id}","starred_url":"https://api.github.com/users/laravelday2018workshop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravelday2018workshop/subscriptions","organizations_url":"https://api.github.com/users/laravelday2018workshop/orgs","repos_url":"https://api.github.com/users/laravelday2018workshop/repos","events_url":"https://api.github.com/users/laravelday2018workshop/events{/privacy}","received_events_url":"https://api.github.com/users/laravelday2018workshop/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/laravelday2018workshop/the_scientist","description":"Piattaforma per pubblicazione articoli scientifici","fork":false,"url":"https://api.github.com/repos/laravelday2018workshop/the_scientist","forks_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/forks","keys_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/teams","hooks_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/hooks","issue_events_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/issues/events{/number}","events_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/events","assignees_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/assignees{/user}","branches_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/branches{/branch}","tags_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/tags","blobs_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/statuses/{sha}","languages_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/languages","stargazers_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/stargazers","contributors_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/contributors","subscribers_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/subscribers","subscription_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/subscription","commits_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/contents/{+path}","compare_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/merges","archive_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/downloads","issues_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/issues{/number}","pulls_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls{/number}","milestones_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/milestones{/number}","notifications_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/labels{/name}","releases_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/releases{/id}","deployments_url":"https://api.github.com/repos/laravelday2018workshop/the_scientist/deployments","created_at":"2018-10-22T18:45:21Z","updated_at":"2018-11-05T23:21:05Z","pushed_at":"2018-11-08T16:43:40Z","git_url":"git://github.com/laravelday2018workshop/the_scientist.git","ssh_url":"git@github.com:laravelday2018workshop/the_scientist.git","clone_url":"https://github.com/laravelday2018workshop/the_scientist.git","svn_url":"https://github.com/laravelday2018workshop/the_scientist","homepage":null,"size":226,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/5"},"html":{"href":"https://github.com/laravelday2018workshop/the_scientist/pull/5"},"issue":{"href":"https://api.github.com/repos/laravelday2018workshop/the_scientist/issues/5"},"comments":{"href":"https://api.github.com/repos/laravelday2018workshop/the_scientist/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravelday2018workshop/the_scientist/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/laravelday2018workshop/the_scientist/statuses/00a7ee43d29d2ed335d239b6632bb26d16a6694c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"damianopetrungaro"}}