{"action":"created","issue":{"url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/15","repository_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle","labels_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/15/comments","events_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/15/events","html_url":"https://github.com/Bee-Lab/BeelabRecaptcha2Bundle/pull/15","id":182766081,"number":15,"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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-13T11:38:21Z","updated_at":"2016-10-13T12:47:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/pulls/15","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"},"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"},"comment":{"url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/comments/253503107","html_url":"https://github.com/Bee-Lab/BeelabRecaptcha2Bundle/pull/15#issuecomment-253503107","issue_url":"https://api.github.com/repos/Bee-Lab/BeelabRecaptcha2Bundle/issues/15","id":253503107,"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},"created_at":"2016-10-13T12:47:51Z","updated_at":"2016-10-13T12:47:51Z","body":"Not related to this PR : https://github.com/Soullivaneuh/php-cs-fixer-styleci-bridge\r\n\r\nYou could have a look on this library, this allow contributors to run `php-cs-fixer fix .` locally with your styleCI configuration.\r\n\r\nI've implemented it on some of my repo and it work like a charm 😉 "}}
{"actor":{"display_login":"Th3Mouk"}}