Closed
Description
Hello,
On the Symfony side, I was advocating for auto exclude some classes from the service container, based on their attributes. This way, with this PR, Entity and AsMessage are now auto excluded from services, as it won't need to exclude them with Exclude attribute or within the config/services.yaml exclude key.
So I wonder (I don't really know where to check) if the ApiResource tagged classes are already auto excluded, and if they should (I think they do)?
Best regards,
Activity
soyuka commentedon Apr 5, 2025
indeed its part of our work at #6943 feel free to add a patch excluding resources it'll already be a good step forward
Nayte91 commentedon Apr 29, 2025
I think it's done on this line? adding container.excluded to ApiResource attribute, that's what I thought about.
I think it's OK!
soyuka commentedon Apr 29, 2025
yes but it'll be available only in 4.2 as they're some deprecations