mogilvie / EncryptBundle

Encryption bundle
82 stars 27 forks source link

Registering DoctrineEncryptSubscriber as a Doctrine subscriber is deprecated #50

Open dehy opened 8 months ago

dehy commented 8 months ago

Here is a deprecation warning for the future Symfony 7.0

deprecation.INFO: User Deprecated: Since symfony/doctrine-bridge 6.3: Registering 
"SpecShaper\EncryptBundle\Subscribers\DoctrineEncryptSubscriber" as a Doctrine subscriber is deprecated. 
Register it as a listener instead, using e.g. the #[AsDoctrineListener] attribute. 
{"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/doctrine-bridge 6.3: Registering 
\"SpecShaper\\EncryptBundle\\Subscribers\\DoctrineEncryptSubscriber\" as a Doctrine subscriber is deprecated. 
Register it as a listener instead, using e.g. the #[AsDoctrineListener] attribute. at /app/vendor/symfony/doctrine-bridge/ContainerAwareEventManager.php:211)"}
mogilvie commented 1 month ago

Will be updated for next release V4 to address symfony 7