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

[FrameworkBundle] Exclude constraints from container #54887

Open
wants to merge 1 commit into
base: 6.4
Choose a base branch
from

Conversation

Tobion
Copy link
Member

@Tobion Tobion commented May 11, 2024

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? no
Issues Fix #...
License MIT

Constraints should not be registered as services but since Constraints and Validators are usually in the same directory, constraints can not be excluded using the path but only via instanceof.

@carsonbot carsonbot added this to the 6.4 milestone May 11, 2024
@javiereguiluz javiereguiluz changed the title [FramworkBundle] exclude constraints from container [FrameworkBundle] exclude constraints from container May 11, 2024
@lyrixx
Copy link
Member

lyrixx commented May 11, 2024

Hello, IIRC, I did the same patch in order to try, and I didn't work. Are you 100% sure it remove theses services from the container?

@OskarStark OskarStark changed the title [FrameworkBundle] exclude constraints from container [FrameworkBundle] Exclude constraints from container May 13, 2024
@nicolas-grekas
Copy link
Member

nicolas-grekas commented May 15, 2024

This should use registerForAutoconfiguration instead, the current code defines a local-only rule, but I suppose you want to exclude constraints defined by apps, isn't it?

@lyrixx
Copy link
Member

lyrixx commented May 15, 2024

Note : I tested with registerForAutoconfiguration obviously

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants