schmittjoh / JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
http://jmsyst.com/bundles/JMSTranslationBundle
427 stars 291 forks source link

Is this a known error ? #579

Closed malutanpetronel closed 1 year ago

malutanpetronel commented 1 year ago

[Semantical Error] The annotation "@Sensio\Bundle\FrameworkExtraBundle\Configuration\Template" in method JMS\TranslationBundle\Controller\TranslateController::indexAction() was never imported. Did you maybe forget to add a "use" statement for this annotation? in /application/vendor/jms/translation-bundle/Controller/ (which is being imported from "/application/config/routes.yaml"). Make sure to use PHP 8+ or that annotations are installed and enabled.

Q A

jms/translation-bundle 1.9.1


Symfony


Version 5.4.23
Long-Term Support Yes
End of maintenance 11/2024 (in +557 days)
End of life 11/2025 (in +922 days)


Kernel


Type App\Kernel
Environment dev
Debug true
Charset UTF-8
Cache directory ./var/cache/talente_dev (12.6 MiB)
Build directory ./var/cache/talente_dev (12.6 MiB)
Log directory ./var/logs/talente_dev (93 KiB)


PHP


Version 8.0.5
Architecture 64 bits
Intl locale en_US_POSIX
Timezone Europe/Paris (2023-05-23T10:04:11+02:00)
OPcache false
APCu false
Xdebug false


Expected behavior

Actual behavior

Steps to reproduce

malutanpetronel commented 1 year ago

it was probably because I had a old setting in config

JMSTranslationBundle_ui: resource: "@JMSTranslationBundle/Controller/" type: annotation prefix: /_trans

Marcelo-Petrucelli commented 1 year ago

Could you share with us the new setting in config? Is it now required anymore?