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

Is this a known error ? #579

Closed
malutanpetronel opened this issue May 23, 2023 · 2 comments
Closed

Is this a known error ? #579

malutanpetronel opened this issue May 23, 2023 · 2 comments

Comments

@malutanpetronel
Copy link

[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
Copy link
Author

it was probably because I had a old setting in config

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

@Marcelo-Petrucelli
Copy link

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

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