{"action":"created","comment":{"url":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/comments/56003567","id":56003567,"diff_hunk":"@@ -0,0 +1,52 @@\n+<?php\n+\n+/*\n+ * This file is part of the ACME PHP library.\n+ *\n+ * (c) Titouan Galopin <galopintitouan@gmail.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 AcmePhp\\Bundle\\Controller;\n+\n+use AcmePhp\\Bundle\\Exception\\ChallengeNotFoundException;\n+use AcmePhp\\Core\\Protocol\\Challenge;\n+use Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n+use Symfony\\Component\\HttpFoundation\\Response;\n+\n+/**\n+ * Handle challenge requests from CA.\n+ *\n+ * @author Jérémy Derussé <jeremy@derusse.com>\n+ */\n+class ChallengeController extends Controller\n+{\n+    /**\n+     * Main action.\n+     *\n+     * @param $token\n+     *\n+     * @return Response\n+     */\n+    public function indexAction($token)\n+    {\n+        $logger = $this->get('acme_php.logger');\n+        try {\n+            /** @var Challenge $challenge */\n+            $challenge = $this->get('acme_php.challenge.repository')->findOneByToken($token);\n+        } catch (ChallengeNotFoundException $e) {\n+            throw $this->createNotFoundException();","path":"Controller/ChallengeController.php","position":40,"original_position":40,"commit_id":"ea89d21d7ec314690bf351e98aa8d2508fa1d8e2","original_commit_id":"ea89d21d7ec314690bf351e98aa8d2508fa1d8e2","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":"I would log this. It is public, I know, but it may be a problem with the bundle / configuration. Perhaps simply as a warning, but I would definitely want it to debug :) .","created_at":"2016-03-14T13:59:17Z","updated_at":"2016-03-14T13:59:17Z","html_url":"https://github.com/acmephp/symfony-bundle/pull/1#discussion_r56003567","pull_request_url":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/comments/56003567"},"html":{"href":"https://github.com/acmephp/symfony-bundle/pull/1#discussion_r56003567"},"pull_request":{"href":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/1","id":60864888,"html_url":"https://github.com/acmephp/symfony-bundle/pull/1","diff_url":"https://github.com/acmephp/symfony-bundle/pull/1.diff","patch_url":"https://github.com/acmephp/symfony-bundle/pull/1.patch","issue_url":"https://api.github.com/repos/acmephp/symfony-bundle/issues/1","number":1,"state":"open","locked":false,"title":"Implement the SymfonyBundle","user":{"login":"jderusse","id":578547,"avatar_url":"https://avatars.githubusercontent.com/u/578547?v=3","gravatar_id":"","url":"https://api.github.com/users/jderusse","html_url":"https://github.com/jderusse","followers_url":"https://api.github.com/users/jderusse/followers","following_url":"https://api.github.com/users/jderusse/following{/other_user}","gists_url":"https://api.github.com/users/jderusse/gists{/gist_id}","starred_url":"https://api.github.com/users/jderusse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jderusse/subscriptions","organizations_url":"https://api.github.com/users/jderusse/orgs","repos_url":"https://api.github.com/users/jderusse/repos","events_url":"https://api.github.com/users/jderusse/events{/privacy}","received_events_url":"https://api.github.com/users/jderusse/received_events","type":"User","site_admin":false},"body":"First draft of the bundle\r\n\r\n* [x] Tests\r\n* [x] Document how to extends\r\n* [x] handle http request from acme server","created_at":"2016-02-26T16:16:15Z","updated_at":"2016-03-14T13:59:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d0d231cdffd7036f9e70ebac2a9d2ce0d36a19e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/1/commits","review_comments_url":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/1/comments","review_comment_url":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acmephp/symfony-bundle/issues/1/comments","statuses_url":"https://api.github.com/repos/acmephp/symfony-bundle/statuses/ea89d21d7ec314690bf351e98aa8d2508fa1d8e2","head":{"label":"jderusse:master","ref":"master","sha":"ea89d21d7ec314690bf351e98aa8d2508fa1d8e2","user":{"login":"jderusse","id":578547,"avatar_url":"https://avatars.githubusercontent.com/u/578547?v=3","gravatar_id":"","url":"https://api.github.com/users/jderusse","html_url":"https://github.com/jderusse","followers_url":"https://api.github.com/users/jderusse/followers","following_url":"https://api.github.com/users/jderusse/following{/other_user}","gists_url":"https://api.github.com/users/jderusse/gists{/gist_id}","starred_url":"https://api.github.com/users/jderusse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jderusse/subscriptions","organizations_url":"https://api.github.com/users/jderusse/orgs","repos_url":"https://api.github.com/users/jderusse/repos","events_url":"https://api.github.com/users/jderusse/events{/privacy}","received_events_url":"https://api.github.com/users/jderusse/received_events","type":"User","site_admin":false},"repo":{"id":52616305,"name":"symfony-bundle","full_name":"jderusse/symfony-bundle","owner":{"login":"jderusse","id":578547,"avatar_url":"https://avatars.githubusercontent.com/u/578547?v=3","gravatar_id":"","url":"https://api.github.com/users/jderusse","html_url":"https://github.com/jderusse","followers_url":"https://api.github.com/users/jderusse/followers","following_url":"https://api.github.com/users/jderusse/following{/other_user}","gists_url":"https://api.github.com/users/jderusse/gists{/gist_id}","starred_url":"https://api.github.com/users/jderusse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jderusse/subscriptions","organizations_url":"https://api.github.com/users/jderusse/orgs","repos_url":"https://api.github.com/users/jderusse/repos","events_url":"https://api.github.com/users/jderusse/events{/privacy}","received_events_url":"https://api.github.com/users/jderusse/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jderusse/symfony-bundle","description":"Let's Encrypt/ACME bundle for Symfony","fork":true,"url":"https://api.github.com/repos/jderusse/symfony-bundle","forks_url":"https://api.github.com/repos/jderusse/symfony-bundle/forks","keys_url":"https://api.github.com/repos/jderusse/symfony-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jderusse/symfony-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jderusse/symfony-bundle/teams","hooks_url":"https://api.github.com/repos/jderusse/symfony-bundle/hooks","issue_events_url":"https://api.github.com/repos/jderusse/symfony-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/jderusse/symfony-bundle/events","assignees_url":"https://api.github.com/repos/jderusse/symfony-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/jderusse/symfony-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/jderusse/symfony-bundle/tags","blobs_url":"https://api.github.com/repos/jderusse/symfony-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jderusse/symfony-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jderusse/symfony-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/jderusse/symfony-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jderusse/symfony-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/jderusse/symfony-bundle/languages","stargazers_url":"https://api.github.com/repos/jderusse/symfony-bundle/stargazers","contributors_url":"https://api.github.com/repos/jderusse/symfony-bundle/contributors","subscribers_url":"https://api.github.com/repos/jderusse/symfony-bundle/subscribers","subscription_url":"https://api.github.com/repos/jderusse/symfony-bundle/subscription","commits_url":"https://api.github.com/repos/jderusse/symfony-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/jderusse/symfony-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/jderusse/symfony-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/jderusse/symfony-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/jderusse/symfony-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/jderusse/symfony-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jderusse/symfony-bundle/merges","archive_url":"https://api.github.com/repos/jderusse/symfony-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jderusse/symfony-bundle/downloads","issues_url":"https://api.github.com/repos/jderusse/symfony-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/jderusse/symfony-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/jderusse/symfony-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/jderusse/symfony-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jderusse/symfony-bundle/labels{/name}","releases_url":"https://api.github.com/repos/jderusse/symfony-bundle/releases{/id}","deployments_url":"https://api.github.com/repos/jderusse/symfony-bundle/deployments","created_at":"2016-02-26T16:12:13Z","updated_at":"2016-02-26T16:12:13Z","pushed_at":"2016-03-13T22:23:39Z","git_url":"git://github.com/jderusse/symfony-bundle.git","ssh_url":"git@github.com:jderusse/symfony-bundle.git","clone_url":"https://github.com/jderusse/symfony-bundle.git","svn_url":"https://github.com/jderusse/symfony-bundle","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"acmephp:master","ref":"master","sha":"ec9dae2f1fafb5135bb5935a2fa01ef3af2ef5db","user":{"login":"acmephp","id":17103279,"avatar_url":"https://avatars.githubusercontent.com/u/17103279?v=3","gravatar_id":"","url":"https://api.github.com/users/acmephp","html_url":"https://github.com/acmephp","followers_url":"https://api.github.com/users/acmephp/followers","following_url":"https://api.github.com/users/acmephp/following{/other_user}","gists_url":"https://api.github.com/users/acmephp/gists{/gist_id}","starred_url":"https://api.github.com/users/acmephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acmephp/subscriptions","organizations_url":"https://api.github.com/users/acmephp/orgs","repos_url":"https://api.github.com/users/acmephp/repos","events_url":"https://api.github.com/users/acmephp/events{/privacy}","received_events_url":"https://api.github.com/users/acmephp/received_events","type":"Organization","site_admin":false},"repo":{"id":52123640,"name":"symfony-bundle","full_name":"acmephp/symfony-bundle","owner":{"login":"acmephp","id":17103279,"avatar_url":"https://avatars.githubusercontent.com/u/17103279?v=3","gravatar_id":"","url":"https://api.github.com/users/acmephp","html_url":"https://github.com/acmephp","followers_url":"https://api.github.com/users/acmephp/followers","following_url":"https://api.github.com/users/acmephp/following{/other_user}","gists_url":"https://api.github.com/users/acmephp/gists{/gist_id}","starred_url":"https://api.github.com/users/acmephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acmephp/subscriptions","organizations_url":"https://api.github.com/users/acmephp/orgs","repos_url":"https://api.github.com/users/acmephp/repos","events_url":"https://api.github.com/users/acmephp/events{/privacy}","received_events_url":"https://api.github.com/users/acmephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acmephp/symfony-bundle","description":"Let's Encrypt/ACME bundle for Symfony","fork":false,"url":"https://api.github.com/repos/acmephp/symfony-bundle","forks_url":"https://api.github.com/repos/acmephp/symfony-bundle/forks","keys_url":"https://api.github.com/repos/acmephp/symfony-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acmephp/symfony-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acmephp/symfony-bundle/teams","hooks_url":"https://api.github.com/repos/acmephp/symfony-bundle/hooks","issue_events_url":"https://api.github.com/repos/acmephp/symfony-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/acmephp/symfony-bundle/events","assignees_url":"https://api.github.com/repos/acmephp/symfony-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/acmephp/symfony-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/acmephp/symfony-bundle/tags","blobs_url":"https://api.github.com/repos/acmephp/symfony-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acmephp/symfony-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acmephp/symfony-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/acmephp/symfony-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acmephp/symfony-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/acmephp/symfony-bundle/languages","stargazers_url":"https://api.github.com/repos/acmephp/symfony-bundle/stargazers","contributors_url":"https://api.github.com/repos/acmephp/symfony-bundle/contributors","subscribers_url":"https://api.github.com/repos/acmephp/symfony-bundle/subscribers","subscription_url":"https://api.github.com/repos/acmephp/symfony-bundle/subscription","commits_url":"https://api.github.com/repos/acmephp/symfony-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/acmephp/symfony-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/acmephp/symfony-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/acmephp/symfony-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/acmephp/symfony-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/acmephp/symfony-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acmephp/symfony-bundle/merges","archive_url":"https://api.github.com/repos/acmephp/symfony-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acmephp/symfony-bundle/downloads","issues_url":"https://api.github.com/repos/acmephp/symfony-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/acmephp/symfony-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/acmephp/symfony-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/acmephp/symfony-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acmephp/symfony-bundle/labels{/name}","releases_url":"https://api.github.com/repos/acmephp/symfony-bundle/releases{/id}","deployments_url":"https://api.github.com/repos/acmephp/symfony-bundle/deployments","created_at":"2016-02-19T23:34:25Z","updated_at":"2016-03-09T21:39:23Z","pushed_at":"2016-03-13T22:23:39Z","git_url":"git://github.com/acmephp/symfony-bundle.git","ssh_url":"git@github.com:acmephp/symfony-bundle.git","clone_url":"https://github.com/acmephp/symfony-bundle.git","svn_url":"https://github.com/acmephp/symfony-bundle","homepage":null,"size":3,"stargazers_count":9,"watchers_count":9,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/1"},"html":{"href":"https://github.com/acmephp/symfony-bundle/pull/1"},"issue":{"href":"https://api.github.com/repos/acmephp/symfony-bundle/issues/1"},"comments":{"href":"https://api.github.com/repos/acmephp/symfony-bundle/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acmephp/symfony-bundle/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/acmephp/symfony-bundle/statuses/ea89d21d7ec314690bf351e98aa8d2508fa1d8e2"}}}}