dachcom-digital / pimcore-i18n

Pimcore - i18n Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disabling CookieRedirector throws Exception

GALPR opened this issue · comments

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

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

$cookieRedirector = $this->redirectorRegistry->get('cookie');

I think this statement could simply be wrapped in if ($this->redirectorRegistry->has('cookie')).

This is a regression of #147

fixed in 5.0.1