Thanks to visit codestin.com
Credit goes to github.com

Skip to content

validator fails on LegacyTranslatorProxy when using without translation component #31216

Closed
@bitgandtter

Description

@bitgandtter

Symfony version(s) affected: 4.2.7

Description
Using form and validation components without translation component leads to Fatal error: Interface 'Symfony\Component\Translation\TranslatorInterface' not found in /var/www/framework/vendor/symfony/validator/Util/LegacyTranslatorProxy.php on line 21 when running composer install -o -a --no-dev

How to reproduce

  • symfony new my_project
  • cd my_project/
  • composer req symfony/validator

neither on official documentation or component composer.json shows a direct dependency from the translator component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions