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

[Symfony 3.4] Getting error - Dependency on a non-existent service "translator.formatter.default" #351

Open
zsolt-racz opened this issue Aug 14, 2019 · 1 comment

Comments

@zsolt-racz
Copy link

Hello, after including the bundle into a Symfony 3.4 project on Linux, I'm getting the following error message:
The service "lexik_translation.translator" has a dependency on a non-existent service "translator.formatter.default".

I've tried it with a clean 3.4 project too and the result is the same.

Steps to reproduce:

  1. Create new project php symfony new test_project 3.4
  2. Open the project directory cd test_project
  3. Install LexikTranslationBundle composer require lexik/translation-bundle
  4. Set up basic config in config.yml and add bundle class in AppKernel.php
  5. Running ./bin/console or any other command results in the aforementioned error message

I found out that it's referenced here, however I have no clue what this service should do and where should it come from:

new Reference('translator.formatter.default'),

Any ideas?

@iskanderAB
Copy link

just activate the translator on config app/config/config.yml
framework:
translator: { fallbacks: ["%locale%"] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants