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

Loosen dependency on symfony/validator bundle #1379

Merged

Conversation

m-vo
Copy link
Contributor

@m-vo m-vo commented Jun 30, 2021

Fixes #1377

This PR skips registering a doctrine.orm.<name>_entity_manager.validator_loader service if the Symfony\Component\Validator\Mapping\Loader\LoaderInterface is not present.

Not sure how to properly test this tbh.

@m-vo
Copy link
Contributor Author

m-vo commented Jun 30, 2021

@alcaeus Is this the right target branch?

@alcaeus alcaeus self-assigned this Jun 30, 2021
@alcaeus alcaeus added the Bug label Jun 30, 2021
@alcaeus alcaeus added this to the 2.4.3 milestone Jun 30, 2021
@alcaeus
Copy link
Member

alcaeus commented Jun 30, 2021

2.4 is correct, thank you for the PR. Build failures are unrelated and probably have to do with doctrine/annotations no longer being a required dependency in ORM but rather optional. I'll fix that in a separate PR.

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

Successfully merging this pull request may close these issues.

DoctrineLoader relies on symfony/validator as a peer dependency
2 participants