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

Doctrine subscribers as services is deprecated, declare listeners instead #1388

Closed
laurentmuller opened this issue May 31, 2023 · 0 comments
Closed

Comments

@laurentmuller
Copy link
Contributor

BC Break Report

I have update Symfony to version 6.3.0. A deprecation is now raised.

Q A
BC Break No
Version 2.1.1

Summary

When using this bundle, the following deprecation is raised:

Since symfony/doctrine-bridge 6.3: Using Doctrine subscribers as services is deprecated, declare listeners instead

The deprecation is raised by the Vich\UploaderBundle\EventListener\Doctrine\BaseListener class. This class implement the EventSubscriber interface.

Please see #49918 and replace with event listener.

Previous behavior

No deprecation.

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

No branches or pull requests

2 participants