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

Add other methods to configure Anonymzation #21

Open
SimonMellerin opened this issue Nov 21, 2023 · 0 comments
Open

Add other methods to configure Anonymzation #21

SimonMellerin opened this issue Nov 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@SimonMellerin
Copy link
Member

Par exemple, une API en PHP:

function configure(AnonymiationBuilder $builder) {
    $builder
        ->forTable('demande')
        ->column('nom', NomAnomyzer::class, ['option1' => 'foo', /* ... */])
        ->table('address', AdressAnonymzer::class, [/* ... */]) 
     ;

    $builder
        ->forTable('other_table')
        ->column('nom', NomAnomyzer::class, ['option1' => 'foo', /* ... */])
        ->table('address', AdressAnonymzer::class, [/* ... */])
        // ...
     ;
}

Je fais ça en deux secondes comme ça, mais c'est peut être un sujet à réfléchir dans le futur, ou pas d'ailleurs !
Ça pourrait permettre d'enregister des services, genre:

namespace App\DbTools;

class MonPluginMaConf
{
    #[AnonimizeTable('Table des demandes')]
    public function anonymiseDemande(AnonymiationBuilder $builder): void
    {
    }
}

Et on pourrait imaginer ensuite qu'une commande puisse lister les tables, et lancer table par table ?

@SimonMellerin SimonMellerin added the enhancement New feature or request label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant