-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
BUG: Attribute driven routes are ignored in production context #3400
Comments
This shoudn't be affected by the ConfigurationManager availability I think? This is super obscure but I think the problem is that we just do not load method annotation data in production. This is sensible for performance, and we can fix this issue here by using compile static, which we should do anyways for better production performance, BUT fact is, we should have the same behavior in Development and instead only decide between runtime and compiletime behavior. Atm. I know from experience that this trickery is necessary as the ram usage for this is huge. Oh and while I can have a look at a PR tomorrow, for sake of clarity as this is a bit of a hidden feature I guess, |
The PR should fix the immediate bug, I will open additional PRs with some ideas about the wider topic of runtime (production) reflection data etc. |
#3402 for the underlaying issue |
Is there an existing issue for this?
Current Behavior
Routes from attributes are not detected
Expected Behavior
Routes from attributes should be respected and listable via
./flow routing:list
Steps To Reproduce
Add
Route
attributes to some MVC action and configure the AttributeRoutesProviderFactory as describedEnvironment
- Flow: 9.0@dev
Anything else?
I could pin point the issue down to this line
flow-development-collection/Neos.Flow/Classes/Mvc/Routing/AttributeRoutesProvider.php
Line 81 in ee8a812
ReflectionService
is fully initialized.Related: #2059
The text was updated successfully, but these errors were encountered: