Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31547

Autowiring fails for CustomTag service when using 3rd party translator bundle

    XMLWordPrintable

Details

    Description

      In some cases using 3rd party Translator may result in an exception being thrown:

      [Symfony\Component\DependencyInjection\Exception\RuntimeException] Cannot autowire service "EzSystems\EzPlatformAdminUi\UI\Config\Mapper\FieldType\RichText\CustomTag": argument "$translator" of method "__construct()" references class "Symfony\Component\Translation\Translator" but no such service exists. Try changing the type-hint to "Symfony\Component\Translation\TranslatorInterface" instead. 

      Steps to reproduce
      1. Clean installation of eZ Platform 2.5.9
      2. InstallĀ and enable LexikTranslationBundle
      3. Run: php bin/console c:c.

      Result
      An error like one above.

      Expected result
      No exception is thrown.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mateusz.bieniek@ibexa.co Mateusz Bieniek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: