{"action":"closed","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/19746","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/19746/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/19746/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/19746/events","html_url":"https://github.com/symfony/symfony/issues/19746","id":173437470,"number":19746,"title":"[DI] Extract string manipulation static methods from Container to StringUtil","user":{"login":"a-ast","id":6177375,"avatar_url":"https://avatars.githubusercontent.com/u/6177375?v=3","gravatar_id":"","url":"https://api.github.com/users/a-ast","html_url":"https://github.com/a-ast","followers_url":"https://api.github.com/users/a-ast/followers","following_url":"https://api.github.com/users/a-ast/following{/other_user}","gists_url":"https://api.github.com/users/a-ast/gists{/gist_id}","starred_url":"https://api.github.com/users/a-ast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-ast/subscriptions","organizations_url":"https://api.github.com/users/a-ast/orgs","repos_url":"https://api.github.com/users/a-ast/repos","events_url":"https://api.github.com/users/a-ast/events{/privacy}","received_events_url":"https://api.github.com/users/a-ast/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-26T12:01:24Z","updated_at":"2016-08-26T14:31:25Z","closed_at":"2016-08-26T14:31:25Z","body":"The `Container` class has two public static methods for string manipulations: `camelize` and `underscore`.\r\nConverting strings is not a responsibility of a container. Some classes even use `Container` namespace only to call these static methods.   \r\n\r\nOther components have a dedicated class for string utils:\r\n* Symfony\\Component\\PropertyAccess\\StringUtil\r\n* Symfony\\Component\\Form\\Util\\StringUtil\r\n\r\nMy suggestion is to extract string functions to a new class Symfony\\Component\\DependencyInjection\\StringUtil and deprecate `Container::camelize` and `Container::underscore`."}}
{"actor":{"display_login":"fabpot"}}