Skip to content

Commit 0ddff6c

Browse files
author
Tom Schillemans
committed
Clarified the section on how to create custom anonymizer types
1 parent 64698fa commit 0ddff6c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Resources/doc/anonymizer.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@ Provides an annotation for anonymizing objects based on specific anonymization t
1414
## Registering new anonymizers
1515

1616
You can create your own anonymizers and register them in the compiler pass by tagging the service:
17+
The `type` parameter specifies the name to be used in the `type` parameter of the annotation.
1718

1819
```yml
19-
your_bundle_name.your_anonymizer:
20+
your_bundle_name.your_anonymizer:`
2021
class: Your\Class\To\Your\Anonymizer
2122
tags:
2223
- { name: superbrave_gdpr.anonymizer, type: your_type }
2324
```
2425
26+
The examle above will register a anonymizer with the name `your_type`.
27+
You can then use it as follows ```@GDPR\Anonymize(type="your_type")```
28+
2529
## Usage
2630

2731
You can anonymize objects by using the anonymizer service:

0 commit comments

Comments
 (0)