{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/pulls/15","id":89185002,"html_url":"https://github.com/Bee-Lab/BeelabRecaptcha2Bundle/pull/15","diff_url":"https://github.com/Bee-Lab/BeelabRecaptcha2Bundle/pull/15.diff","patch_url":"https://github.com/Bee-Lab/BeelabRecaptcha2Bundle/pull/15.patch","issue_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/15","number":15,"state":"open","locked":false,"title":"Improve flexibility of the RecaptchaVerifier","user":{"login":"Th3Mouk","id":5006899,"avatar_url":"https://avatars.githubusercontent.com/u/5006899?v=3","gravatar_id":"","url":"https://api.github.com/users/Th3Mouk","html_url":"https://github.com/Th3Mouk","followers_url":"https://api.github.com/users/Th3Mouk/followers","following_url":"https://api.github.com/users/Th3Mouk/following{/other_user}","gists_url":"https://api.github.com/users/Th3Mouk/gists{/gist_id}","starred_url":"https://api.github.com/users/Th3Mouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Th3Mouk/subscriptions","organizations_url":"https://api.github.com/users/Th3Mouk/orgs","repos_url":"https://api.github.com/users/Th3Mouk/repos","events_url":"https://api.github.com/users/Th3Mouk/events{/privacy}","received_events_url":"https://api.github.com/users/Th3Mouk/received_events","type":"User","site_admin":false},"body":"## Subject\r\n\r\nThe verifier is hard depending onto a specific parameter in the RequestStack, he must be related to the value of the RecaptchaType\r\n\r\n## Step to reproduce\r\n\r\n```php\r\nclass PreRegisterType extends AbstractType\r\n{\r\n    public function buildForm(FormBuilderInterface $builder, array $options)\r\n    {\r\n        $builder\r\n            ->add('email', EmailType::class)\r\n            ->add('captcha', RecaptchaType::class, [\r\n                'mapped' => false,\r\n                'constraints' => new Recaptcha2(),\r\n            ])\r\n        ;\r\n    }\r\n\r\n    public function configureOptions(OptionsResolver $resolver)\r\n    {\r\n        $resolver->setDefaults([\r\n            'data_class' => User::class,\r\n        ]);\r\n    }\r\n}\r\n```\r\n\r\nIn this case the name of the parameter in the `RequestStack` is `captcha` and not `g-captcha-response`.\r\n\r\n## Tests\r\n\r\n- [X] Tests updated\r\n- [X] Tests pass","created_at":"2016-10-13T11:38:21Z","updated_at":"2016-10-13T11:38:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/pulls/15/commits","review_comments_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/pulls/15/comments","review_comment_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/15/comments","statuses_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/statuses/23209c399110e6ef6f90fe464d1c8e56b4f9e296","head":{"label":"Th3Mouk:fix-captcha-validator","ref":"fix-captcha-validator","sha":"23209c399110e6ef6f90fe464d1c8e56b4f9e296","user":{"login":"Th3Mouk","id":5006899,"avatar_url":"https://avatars.githubusercontent.com/u/5006899?v=3","gravatar_id":"","url":"https://api.github.com/users/Th3Mouk","html_url":"https://github.com/Th3Mouk","followers_url":"https://api.github.com/users/Th3Mouk/followers","following_url":"https://api.github.com/users/Th3Mouk/following{/other_user}","gists_url":"https://api.github.com/users/Th3Mouk/gists{/gist_id}","starred_url":"https://api.github.com/users/Th3Mouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Th3Mouk/subscriptions","organizations_url":"https://api.github.com/users/Th3Mouk/orgs","repos_url":"https://api.github.com/users/Th3Mouk/repos","events_url":"https://api.github.com/users/Th3Mouk/events{/privacy}","received_events_url":"https://api.github.com/users/Th3Mouk/received_events","type":"User","site_admin":false},"repo":{"id":70796050,"name":"BeelabRecaptcha2Bundle","full_name":"Th3Mouk/BeelabRecaptcha2Bundle","owner":{"login":"Th3Mouk","id":5006899,"avatar_url":"https://avatars.githubusercontent.com/u/5006899?v=3","gravatar_id":"","url":"https://api.github.com/users/Th3Mouk","html_url":"https://github.com/Th3Mouk","followers_url":"https://api.github.com/users/Th3Mouk/followers","following_url":"https://api.github.com/users/Th3Mouk/following{/other_user}","gists_url":"https://api.github.com/users/Th3Mouk/gists{/gist_id}","starred_url":"https://api.github.com/users/Th3Mouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Th3Mouk/subscriptions","organizations_url":"https://api.github.com/users/Th3Mouk/orgs","repos_url":"https://api.github.com/users/Th3Mouk/repos","events_url":"https://api.github.com/users/Th3Mouk/events{/privacy}","received_events_url":"https://api.github.com/users/Th3Mouk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Th3Mouk/BeelabRecaptcha2Bundle","description":"Symfony bundle for Google Recaptcha2","fork":true,"url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle","forks_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/forks","keys_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/teams","hooks_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/hooks","issue_events_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/issues/events{/number}","events_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/events","assignees_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/assignees{/user}","branches_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/branches{/branch}","tags_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/tags","blobs_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/languages","stargazers_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/stargazers","contributors_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/contributors","subscribers_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/subscribers","subscription_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/subscription","commits_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/contents/{+path}","compare_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/merges","archive_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/downloads","issues_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/issues{/number}","pulls_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/labels{/name}","releases_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/releases{/id}","deployments_url":"https://api.github.com/repos/Th3Mouk/BeelabRecaptcha2Bundle/deployments","created_at":"2016-10-13T10:34:53Z","updated_at":"2016-10-13T10:34:54Z","pushed_at":"2016-10-13T11:33:57Z","git_url":"git://github.com/Th3Mouk/BeelabRecaptcha2Bundle.git","ssh_url":"git@github.com:Th3Mouk/BeelabRecaptcha2Bundle.git","clone_url":"https://github.com/Th3Mouk/BeelabRecaptcha2Bundle.git","svn_url":"https://github.com/Th3Mouk/BeelabRecaptcha2Bundle","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"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":"Bee-Lab:master","ref":"master","sha":"fee0e78456c727426a94b84d8c6374def83cabea","user":{"login":"Bee-Lab","id":5794337,"avatar_url":"https://avatars.githubusercontent.com/u/5794337?v=3","gravatar_id":"","url":"https://api.github.com/users/Bee-Lab","html_url":"https://github.com/Bee-Lab","followers_url":"https://api.github.com/users/Bee-Lab/followers","following_url":"https://api.github.com/users/Bee-Lab/following{/other_user}","gists_url":"https://api.github.com/users/Bee-Lab/gists{/gist_id}","starred_url":"https://api.github.com/users/Bee-Lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bee-Lab/subscriptions","organizations_url":"https://api.github.com/users/Bee-Lab/orgs","repos_url":"https://api.github.com/users/Bee-Lab/repos","events_url":"https://api.github.com/users/Bee-Lab/events{/privacy}","received_events_url":"https://api.github.com/users/Bee-Lab/received_events","type":"Organization","site_admin":false},"repo":{"id":44382556,"name":"BeelabRecaptcha2Bundle","full_name":"Bee-Lab/BeelabRecaptcha2Bundle","owner":{"login":"Bee-Lab","id":5794337,"avatar_url":"https://avatars.githubusercontent.com/u/5794337?v=3","gravatar_id":"","url":"https://api.github.com/users/Bee-Lab","html_url":"https://github.com/Bee-Lab","followers_url":"https://api.github.com/users/Bee-Lab/followers","following_url":"https://api.github.com/users/Bee-Lab/following{/other_user}","gists_url":"https://api.github.com/users/Bee-Lab/gists{/gist_id}","starred_url":"https://api.github.com/users/Bee-Lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bee-Lab/subscriptions","organizations_url":"https://api.github.com/users/Bee-Lab/orgs","repos_url":"https://api.github.com/users/Bee-Lab/repos","events_url":"https://api.github.com/users/Bee-Lab/events{/privacy}","received_events_url":"https://api.github.com/users/Bee-Lab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bee-Lab/BeelabRecaptcha2Bundle","description":"Symfony bundle for Google Recaptcha2","fork":false,"url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle","forks_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/forks","keys_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/teams","hooks_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/hooks","issue_events_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/events{/number}","events_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/events","assignees_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/assignees{/user}","branches_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/branches{/branch}","tags_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/tags","blobs_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/languages","stargazers_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/stargazers","contributors_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/contributors","subscribers_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/subscribers","subscription_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/subscription","commits_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/contents/{+path}","compare_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/merges","archive_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/downloads","issues_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues{/number}","pulls_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/labels{/name}","releases_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/releases{/id}","deployments_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/deployments","created_at":"2015-10-16T12:09:25Z","updated_at":"2016-09-07T15:32:42Z","pushed_at":"2016-10-13T11:38:22Z","git_url":"git://github.com/Bee-Lab/BeelabRecaptcha2Bundle.git","ssh_url":"git@github.com:Bee-Lab/BeelabRecaptcha2Bundle.git","clone_url":"https://github.com/Bee-Lab/BeelabRecaptcha2Bundle.git","svn_url":"https://github.com/Bee-Lab/BeelabRecaptcha2Bundle","homepage":null,"size":29,"stargazers_count":18,"watchers_count":18,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/pulls/15"},"html":{"href":"https://github.com/Bee-Lab/BeelabRecaptcha2Bundle/pull/15"},"issue":{"href":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/15"},"comments":{"href":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/statuses/23209c399110e6ef6f90fe464d1c8e56b4f9e296"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":14,"changed_files":3}}
{"actor":{"display_login":"Th3Mouk"}}