-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
AnnotationOrAttributeDriver problem with Autowire attribute #944
Comments
It looks like you have an older version of the The error message is right in that the |
I have 3.29 version of jms/serialzer & 2.8.0 jms/metadata ... but its still weird why it is happening right after upgrade that package from 5.3 to 5.4 ... No, I dont think so |
Without knowing what class it's trying to read metadata from (and if it's project internal it sounds like at least the constructor would be needed), it'd be hard to identify what's happening here. To my recollection, the bundle and library aren't automagically reading every PHP file in the project, so knowing what's causing a class with the |
File is included in warmup paths even if I tried that simple class it still fails during warmup
|
The reason why it worked with the attribute reader that relied on the annotations interface is because of this workaround to limit it to classes in the To me, the quickest fix is to adjust your app so that the metadata reader isn't picking up classes that shouldn't be considered for serialization. Long term, either that namespace-based filter would need to be added to the standalone driver (IMO unless the serializer is saying that its metadata is closed from extension, I wouldn't suggest that; yes I'm also aware that if an app were adding their own metadata they'd need their own driver anyway, but I'm still not a fan of the namespace check) or some form of marker interface would need to be added so the Reflection |
schmittjoh/serializer#1529 should fix this. |
Thanks @mbabker for contribution! :) I released it under Best. |
@mbabker @scyzoryck yea. tested and it works pretty well. thanks to you guys for such a fast respond and quick fix |
Hi :) , after upgrade to 5.4 tag I'm getting error during cache:warmup command
I used 5.3.1 version and it worked well it can be related to that bundle? thanks
symfony version: 6.4
PHP: 8.2
Steps required to reproduce the problem
Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: