{"action":"closed","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/7845","repository_url":"https://api.github.com/repos/Sylius/Sylius","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/7845/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/7845/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/7845/events","html_url":"https://github.com/Sylius/Sylius/issues/7845","id":217481992,"number":7845,"title":"SyliusLocale : Locale not found","user":{"login":"tvequaud","id":10053651,"avatar_url":"https://avatars2.githubusercontent.com/u/10053651?v=4","gravatar_id":"","url":"https://api.github.com/users/tvequaud","html_url":"https://github.com/tvequaud","followers_url":"https://api.github.com/users/tvequaud/followers","following_url":"https://api.github.com/users/tvequaud/following{/other_user}","gists_url":"https://api.github.com/users/tvequaud/gists{/gist_id}","starred_url":"https://api.github.com/users/tvequaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvequaud/subscriptions","organizations_url":"https://api.github.com/users/tvequaud/orgs","repos_url":"https://api.github.com/users/tvequaud/repos","events_url":"https://api.github.com/users/tvequaud/events{/privacy}","received_events_url":"https://api.github.com/users/tvequaud/received_events","type":"User","site_admin":false},"labels":[{"id":442733973,"url":"https://api.github.com/repos/Sylius/Sylius/labels/Potential%20Bug","name":"Potential Bug","color":"d93f0b","default":false},{"id":765429018,"url":"https://api.github.com/repos/Sylius/Sylius/labels/Stale","name":"Stale","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-28T08:19:51Z","updated_at":"2017-12-11T13:25:29Z","closed_at":"2017-12-11T13:25:29Z","author_association":"NONE","body":"Hi,\r\n\r\nAfter the ProductBundle install, I had to integrate the form... Within my twig I added this piece of twig :\r\n```\r\n{% form_theme form 'SyliusUiBundle:Form:imagesTheme.html.twig' %}\r\n<div class=\"ui tab\" data-tab=\"media\">\r\n    <h3 class=\"ui dividing header\">{{ 'sylius.ui.media'|trans }}</h3>\r\n    <br>\r\n    {{ form_row(form.images, {'label': false}) }}\r\n</div>\r\n```\r\n\r\n`SyliusUiBundle:Form:imagesTheme.html.twig` seems dependent from the locale and the currency (I found a call to twig extension sylius_locale_name and sylius_currency_name in the admin product form).\r\nSo when I add `new \\Sylius\\Bundle\\LocaleBundle\\SyliusLocaleBundle(),` in my AppKernel, I got the following exception : \r\n\r\n```\r\nLocaleNotFoundException in CompositeLocaleContext.php line 52: Locale could not be found!\r\n\r\n    in CompositeLocaleContext.php line 52\r\n    at CompositeLocaleContext->getLocaleCode() in RequestLocaleSetter.php line 46\r\n    at RequestLocaleSetter->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))\r\n    at call_user_func(array(object(RequestLocaleSetter), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher)) in WrappedListener.php line 106\r\n    at WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher))\r\n    at call_user_func(object(WrappedListener), object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher)) in classes.php line 3273\r\n    at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent)) in classes.php line 3188\r\n    at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in TraceableEventDispatcher.php line 136\r\n    at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in classes.php line 4202\r\n    at HttpKernel->handleRaw(object(Request), 1) in classes.php line 4172\r\n    at HttpKernel->handle(object(Request), 1, true) in Kernel.php line 168\r\n    at Kernel->handle(object(Request)) in app_dev.php line 28\r\n```\r\n\r\nSounds obscure to me. I tried to add the sylius_locale block in my config.yml but still same exception... And nothing about the SyliusLocaleBundle or SyliusUiBundle n the documentation so have no clue where I did wrong."}}
{"actor":{"display_login":"stale"}}