{"action":"created","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/4101","repository_url":"https://api.github.com/repos/Sylius/Sylius","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/4101/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/4101/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/4101/events","html_url":"https://github.com/Sylius/Sylius/pull/4101","id":132698820,"number":4101,"title":"[ResourceBundle] Pass form options in route configuration","user":{"login":"gperdomor","id":371939,"avatar_url":"https://avatars.githubusercontent.com/u/371939?v=3","gravatar_id":"","url":"https://api.github.com/users/gperdomor","html_url":"https://github.com/gperdomor","followers_url":"https://api.github.com/users/gperdomor/followers","following_url":"https://api.github.com/users/gperdomor/following{/other_user}","gists_url":"https://api.github.com/users/gperdomor/gists{/gist_id}","starred_url":"https://api.github.com/users/gperdomor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gperdomor/subscriptions","organizations_url":"https://api.github.com/users/gperdomor/orgs","repos_url":"https://api.github.com/users/gperdomor/repos","events_url":"https://api.github.com/users/gperdomor/events{/privacy}","received_events_url":"https://api.github.com/users/gperdomor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Sylius/Sylius/labels/New%20Feature","name":"New Feature","color":"64CF1D"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-10T13:23:23Z","updated_at":"2016-02-10T16:08:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/4101","html_url":"https://github.com/Sylius/Sylius/pull/4101","diff_url":"https://github.com/Sylius/Sylius/pull/4101.diff","patch_url":"https://github.com/Sylius/Sylius/pull/4101.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Fixed tickets | -\r\n| License       | MIT\r\n| Doc PR        | -\r\n\r\nThis PR handle the form options from routing configuration.\r\n\r\nNow we can pass options using this syntax:\r\n<pre><code>some_route:\r\n    path: /new\r\n    methods: [GET, POST]\r\n    defaults:\r\n        _controller: ...\r\n        _sylius:\r\n            template: ...\r\n            form:\r\n                type: some_sylius_form\r\n                options:\r\n                    validation_groups: some_validation_groups\r\n                    another_option: ...\r\n                    ...\r\n            redirect: ...\r\n</pre></code>\r\n\r\nThe previous syntas is allow too:\r\n<pre><code>some_route:\r\n    path: /new\r\n    methods: [GET, POST]\r\n    defaults:\r\n        _controller: ...\r\n        _sylius:\r\n            template: ...\r\n            form: some_sylius_form\r\n            redirect: ...\r\n</pre></code>"},"comment":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/comments/182450203","html_url":"https://github.com/Sylius/Sylius/pull/4101#issuecomment-182450203","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/4101","id":182450203,"user":{"login":"loic425","id":8329789,"avatar_url":"https://avatars.githubusercontent.com/u/8329789?v=3","gravatar_id":"","url":"https://api.github.com/users/loic425","html_url":"https://github.com/loic425","followers_url":"https://api.github.com/users/loic425/followers","following_url":"https://api.github.com/users/loic425/following{/other_user}","gists_url":"https://api.github.com/users/loic425/gists{/gist_id}","starred_url":"https://api.github.com/users/loic425/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loic425/subscriptions","organizations_url":"https://api.github.com/users/loic425/orgs","repos_url":"https://api.github.com/users/loic425/repos","events_url":"https://api.github.com/users/loic425/events{/privacy}","received_events_url":"https://api.github.com/users/loic425/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T16:08:34Z","updated_at":"2016-02-10T16:08:34Z","body":"+1\r\nI'm looking forward to this new feature."}}