dustin10 / VichUploaderBundle

A simple Symfony bundle to ease file uploads with ORM entities and ODM documents.
MIT License
1.84k stars 519 forks source link

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

Closed laurentmuller closed 1 year ago

laurentmuller commented 1 year ago

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.