synolia / SyliusGDPRPlugin

Make your Sylius project GDPR compliant.
European Union Public License 1.2
18 stars 8 forks source link

[Feature] Allow Expression Language in value #33

Closed syl20b closed 5 months ago

syl20b commented 2 years ago

Hello and thank you for this plugin.

I'd like to control / standardize the value of anonymized properties. In order to add such a feature, the use of the Expression Language could be an asset:

Sylius\Component\Core\Model\Customer:
    properties:
        email:
            value: '@="anonimized-" ~ object.getId() ~ "@domain.tld"'

Here, the use of @= prefix means that the value must be considered as an expression.

What do you think about that ?

Regards,

oallain commented 5 months ago

Hello,

Add to Tag v1.6.0

Regards