Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown class locale #219

Open
loevgaard opened this issue Jan 13, 2025 · 1 comment
Open

Unknown class locale #219

loevgaard opened this issue Jan 13, 2025 · 1 comment
Labels
invalid This doesn't seem right

Comments

@loevgaard
Copy link

I get an error like this:

Found 1 unknown class!
(unable to autoload those, so we cannot check them)

  • locale
    in src/Factory/WidgetConfigFactory.php:60 (+ 3 more)

in code like this:

$obj->setRejectButtonLabel($this->translator->trans(
  id: 'setono_sylius_consent_management.ui.widget_config_defaults.reject_button',
  locale: $localeCode,
));

$this->translator is an instance of \Symfony\Contracts\Translation\TranslatorInterface

@janedbal
Copy link
Member

Which version are you using? This was already reported and should be fixed since 1.8.1.

@janedbal janedbal added the invalid This doesn't seem right label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants