{"action":"opened","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/2693","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/2693/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/2693/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/2693/events","html_url":"https://github.com/Sylius/Sylius/issues/2693","id":71080163,"number":2693,"title":"Move TranslationLocaleProvider from the CoreBundle to a component.","user":{"login":"adamelso","id":5972864,"avatar_url":"https://avatars.githubusercontent.com/u/5972864?v=3","gravatar_id":"","url":"https://api.github.com/users/adamelso","html_url":"https://github.com/adamelso","followers_url":"https://api.github.com/users/adamelso/followers","following_url":"https://api.github.com/users/adamelso/following{/other_user}","gists_url":"https://api.github.com/users/adamelso/gists{/gist_id}","starred_url":"https://api.github.com/users/adamelso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamelso/subscriptions","organizations_url":"https://api.github.com/users/adamelso/orgs","repos_url":"https://api.github.com/users/adamelso/repos","events_url":"https://api.github.com/users/adamelso/events{/privacy}","received_events_url":"https://api.github.com/users/adamelso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-26T15:06:51Z","updated_at":"2015-04-26T15:06:51Z","closed_at":null,"body":"After upgrading Sylius (which I'm using Sylius like a library rather than the app), while running my Behat scenarios I was getting the exception:\r\n\r\n> Request must be defined. (RuntimeException)\r\n\r\nAfter some digging, I found I was able to fix the problem by registering the contextual TranslationLocaleProvider service:\r\n\r\n```xml\r\n<service\r\n  id=\"sylius.translation.locale_provider.contextual\"\r\n  class=\"Sylius\\Bundle\\CoreBundle\\Locale\\TranslationLocaleProvider\">\r\n    <argument type=\"service\" id=\"sylius.context.locale\" />\r\n</service>\r\n```\r\n\r\nI don't have CoreBundle registered in my Symfony app, but I still ended up registering this class, which makes me think that the class could be moved to a component, or a lower-level bundle. Question being where exactly to move it to (Core? LocaleBundle?)."}}