{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/14039","labels_url":"https://api.github.com/repos/symfony/symfony/issues/14039/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/14039/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/14039/events","html_url":"https://github.com/symfony/symfony/issues/14039","id":64052974,"number":14039,"title":"Should the selector in the method \"get\" from \"HttpFoundation/ParameterBag\" be changed?","user":{"login":"enriquemorenotent","id":368842,"avatar_url":"https://avatars.githubusercontent.com/u/368842?v=3","gravatar_id":"","url":"https://api.github.com/users/enriquemorenotent","html_url":"https://github.com/enriquemorenotent","followers_url":"https://api.github.com/users/enriquemorenotent/followers","following_url":"https://api.github.com/users/enriquemorenotent/following{/other_user}","gists_url":"https://api.github.com/users/enriquemorenotent/gists{/gist_id}","starred_url":"https://api.github.com/users/enriquemorenotent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enriquemorenotent/subscriptions","organizations_url":"https://api.github.com/users/enriquemorenotent/orgs","repos_url":"https://api.github.com/users/enriquemorenotent/repos","events_url":"https://api.github.com/users/enriquemorenotent/events{/privacy}","received_events_url":"https://api.github.com/users/enriquemorenotent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-03-24T17:24:18Z","updated_at":"2015-04-01T07:44:27Z","closed_at":null,"body":"I have been considering the `get` method in `HttpFoundation`. Basically we iterate around nested arrays using this kind of naming convention:\r\n\r\nIf we do `get(\"foo[bar][baz]\")` we access `$this->params['foo']['bar']['baz']`.\r\n\r\nThe problem with this is that any string can be a key selector. Then how would you access a key that had the \"[\" or \"]\" chars as part of their key? For instance:\r\n\r\n    $this->params[\"some[thing]\"]\r\n\r\nWhile we all will agree that this is a terrible name for a key, is it a possibility. Should we maybe reconsider the way `get` is called? I would propose the following:\r\n\r\n    get(array(\"foo\", \"bar\", \"baz\"));\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/88382538","html_url":"https://github.com/symfony/symfony/issues/14039#issuecomment-88382538","issue_url":"https://api.github.com/repos/symfony/symfony/issues/14039","id":88382538,"user":{"login":"jakzal","id":190447,"avatar_url":"https://avatars.githubusercontent.com/u/190447?v=3","gravatar_id":"","url":"https://api.github.com/users/jakzal","html_url":"https://github.com/jakzal","followers_url":"https://api.github.com/users/jakzal/followers","following_url":"https://api.github.com/users/jakzal/following{/other_user}","gists_url":"https://api.github.com/users/jakzal/gists{/gist_id}","starred_url":"https://api.github.com/users/jakzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakzal/subscriptions","organizations_url":"https://api.github.com/users/jakzal/orgs","repos_url":"https://api.github.com/users/jakzal/repos","events_url":"https://api.github.com/users/jakzal/events{/privacy}","received_events_url":"https://api.github.com/users/jakzal/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T07:44:27Z","updated_at":"2015-04-01T07:44:27Z","body":"@enriquemorenotent this will emit a warning: *PHP Notice:  Undefined index: two in Command line code on line 2*"}}