Closed GALPR closed 1 year ago
An exception is thrown when disabling the CookieRedirector service via the following config:
i18n: registry: redirector: cookie: enabled: false
"cookie" redirector identifier does not exist
The line that causes this issue is https://github.com/dachcom-digital/pimcore-i18n/blob/fac7a85653a8771203dab56cef8385bc0794addd/src/EventListener/DetectorListener.php#L104
I think this statement could simply be wrapped in if ($this->redirectorRegistry->has('cookie')).
if ($this->redirectorRegistry->has('cookie'))
This is a regression of https://github.com/dachcom-digital/pimcore-i18n/pull/147
fixed in 5.0.1
An exception is thrown when disabling the CookieRedirector service via the following config:
The line that causes this issue is https://github.com/dachcom-digital/pimcore-i18n/blob/fac7a85653a8771203dab56cef8385bc0794addd/src/EventListener/DetectorListener.php#L104
I think this statement could simply be wrapped in
if ($this->redirectorRegistry->has('cookie'))
.