-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fix route loading in Contao 4.13 #379
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the annotation still works in Symfony 6 and 7.
It won't work in Symfony 7, will it?
Have you confirmed this works locally? It does not work for me in Contao 5.4 with Symfony 7. There is no Annotation loader in Symfony 7 anymore (by default). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this PR the following error occurs under Contao 5.4 with Symfony 7:
bin/console debug:router nc_bulky_item_download
13:02:49 CRITICAL [console] Error thrown while running command "debug:router nc_bulky_item_download". Message: "The route "nc_bulky_item_download" does not exist."
As far as I can see this is just there to re-use the FQCN of the old |
Fixed in 80b942d |
This made me realize I had the same issue in |
Yeah, looking forward to Contao 4.13 EOL in February 😊 |
To stay compatible with Contao 4.13/Symfony 5, you cannot use attributes for route loading (since they were added in Symfony 6). But the annotation still works in Symfony 6 and 7.