{"action":"closed","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/13631","labels_url":"https://api.github.com/repos/symfony/symfony/issues/13631/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/13631/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/13631/events","html_url":"https://github.com/symfony/symfony/issues/13631","id":57039324,"number":13631,"title":"[Forms][RFC] Names should be customizable","user":{"login":"Nek-","id":972456,"avatar_url":"https://avatars.githubusercontent.com/u/972456?v=3","gravatar_id":"","url":"https://api.github.com/users/Nek-","html_url":"https://github.com/Nek-","followers_url":"https://api.github.com/users/Nek-/followers","following_url":"https://api.github.com/users/Nek-/following{/other_user}","gists_url":"https://api.github.com/users/Nek-/gists{/gist_id}","starred_url":"https://api.github.com/users/Nek-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nek-/subscriptions","organizations_url":"https://api.github.com/users/Nek-/orgs","repos_url":"https://api.github.com/users/Nek-/repos","events_url":"https://api.github.com/users/Nek-/events{/privacy}","received_events_url":"https://api.github.com/users/Nek-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-09T14:46:10Z","updated_at":"2015-02-10T09:35:16Z","closed_at":"2015-02-10T09:35:16Z","body":"There are many example where names should be customizable. Here are 2 examples:\r\n\r\n1. I want to make a search type. I would like my URL to be something like `mywebsite.com/search?q=foo`, of course in my code I don't want to have `q` but maybe something like `query` that is really more understandable, but right know I need to build my for exacly like it is in my request.\r\n2. I want to make an API with special fields and keep the full control on my code (be able to modify any field in my entities and so on). Here i just haven't any easy way to make a type, I need to inject something in the middle of the request and my type, too bad since we have an handleRequest method that should do the job.\r\n\r\n*I'm not sure to be clear, I hope so, do not hesitate to ask for explaination.*\r\n\r\nAbout a solution, I imagine something like that could be great:\r\n\r\n```php\r\n<?php\r\n$builder->add('foo', 'text', ['name' => 'bar']);\r\n```\r\n\r\nOf course that mean some serious changes in the FormFactory element, but there's no BC Break.\r\n\r\nWhat do you think about ? Maybe if you like the idea I can handle it."}}