{"action":"created","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/3959","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/3959/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/3959/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/3959/events","html_url":"https://github.com/Sylius/Sylius/pull/3959","id":128330585,"number":3959,"title":"[ResourceBundle] Toggle the resource with property accessor.","user":{"login":"liverbool","id":206804,"avatar_url":"https://avatars.githubusercontent.com/u/206804?v=3","gravatar_id":"","url":"https://api.github.com/users/liverbool","html_url":"https://github.com/liverbool","followers_url":"https://api.github.com/users/liverbool/followers","following_url":"https://api.github.com/users/liverbool/following{/other_user}","gists_url":"https://api.github.com/users/liverbool/gists{/gist_id}","starred_url":"https://api.github.com/users/liverbool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liverbool/subscriptions","organizations_url":"https://api.github.com/users/liverbool/orgs","repos_url":"https://api.github.com/users/liverbool/repos","events_url":"https://api.github.com/users/liverbool/events{/privacy}","received_events_url":"https://api.github.com/users/liverbool/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-23T14:10:25Z","updated_at":"2016-01-23T14:58:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/3959","html_url":"https://github.com/Sylius/Sylius/pull/3959","diff_url":"https://github.com/Sylius/Sylius/pull/3959.diff","patch_url":"https://github.com/Sylius/Sylius/pull/3959.patch"},"body":"| Q\t                       | A     |\r\n|--------------------------|------ |\r\n| Bug Fix?        \t| n     |\r\n| New Feature?\t| Y     |\r\n| BC Breaks?\t       | n     |\r\n| Deprecations?\t| n     |\r\n| Tests Pass?\t       | n     |\r\n| Fixed Tickets\t       |        |\r\n| License\t               | MIT |\r\n| Doc PR                  |        |\r\n\r\n\r\nDoc:\r\nAllow to configuration resource's attribute for toggle.\r\n\r\n```yaml\r\n\r\nsylius_backend_locale_enable:\r\n    path: /{id}/enable\r\n    methods: [PATCH]\r\n    defaults:\r\n        _controller: sylius.controller.locale:enableAction\r\n        _sylius:\r\n            redirect: sylius_backend_locale_index\r\n            attribute: enabled\r\n            \r\nsylius_backend_locale_disable:\r\n    path: /{id}/disable\r\n    methods: [PATCH]\r\n    defaults:\r\n        _controller: sylius.controller.locale:disableAction\r\n        _sylius:\r\n            redirect: sylius_backend_locale_index\r\n            attribute: enabled\r\n```\r\n\r\nNote: About toggle resource we have some common use-case `batch-toggle`, Who has some idea?"},"comment":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/comments/174192061","html_url":"https://github.com/Sylius/Sylius/pull/3959#issuecomment-174192061","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/3959","id":174192061,"user":{"login":"liverbool","id":206804,"avatar_url":"https://avatars.githubusercontent.com/u/206804?v=3","gravatar_id":"","url":"https://api.github.com/users/liverbool","html_url":"https://github.com/liverbool","followers_url":"https://api.github.com/users/liverbool/followers","following_url":"https://api.github.com/users/liverbool/following{/other_user}","gists_url":"https://api.github.com/users/liverbool/gists{/gist_id}","starred_url":"https://api.github.com/users/liverbool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liverbool/subscriptions","organizations_url":"https://api.github.com/users/liverbool/orgs","repos_url":"https://api.github.com/users/liverbool/repos","events_url":"https://api.github.com/users/liverbool/events{/privacy}","received_events_url":"https://api.github.com/users/liverbool/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T14:58:14Z","updated_at":"2016-01-23T14:58:14Z","body":"@stloyd Fixed, Thanks :)"}}