Annotations are being removed in favor of PHP 8 attributes.
Could we get an #[Encrypted] attribute, just like the current @Encrypted annotation?
This will likely result in the need of adjusting the subscriber as well, as it currently uses the Doctrine\Common\Annotations\Reader.
It is currently possible combine Doctrine attributes and the Encrypted annotation. However, when using the #[ORM\Embeddable] attribute, the subscriber does not decrypt embeddables as it only scans for annotations: https://github.com/absolute-quantum/DoctrineEncryptBundle/blob/master/src/Subscribers/DoctrineEncryptSubscriber.php#L246.
Annotations are being removed in favor of PHP 8 attributes.
Could we get an
#[Encrypted]attribute, just like the current@Encryptedannotation?This will likely result in the need of adjusting the subscriber as well, as it currently uses the
Doctrine\Common\Annotations\Reader.It is currently possible combine Doctrine attributes and the Encrypted annotation. However, when using the
#[ORM\Embeddable]attribute, the subscriber does not decrypt embeddables as it only scans for annotations: https://github.com/absolute-quantum/DoctrineEncryptBundle/blob/master/src/Subscribers/DoctrineEncryptSubscriber.php#L246.