Skip to content

Commit

Permalink
Merge branch 'release/0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
matiux committed Jun 15, 2022
2 parents efcb0f3 + ec894ff commit e82e0b1
Show file tree
Hide file tree
Showing 22 changed files with 446 additions and 201 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ broadway_sensitive_serializer:
strategy:
name: whole
aggregate_key_auto_creation: true # Enable AggregateKey model auto creation. This is the convenient way, check out the examples and wiki on main library
value_serializer: json # Strategy to serialize payload's values. Default json
excluded_id_key: id # The key of the aggregate id which should not be encrypted
excluded_keys: # List of keys to be excluded from encryption
- occurred_at
Expand All @@ -86,6 +87,7 @@ broadway_sensitive_serializer:
# parameters:
# whole:
# aggregate_key_auto_creation: true
# value_serializer: json
# excluded_id_key: id
# excluded_keys:
# - occurred_at
Expand Down Expand Up @@ -119,6 +121,7 @@ broadway_sensitive_serializer:
strategy:
name: partial
aggregate_key_auto_creation: true # Enable AggregateKey model auto creation. This is the convenient way, check out the examples and wiki on main library
value_serializer: json # Strategy to serialize payload's values. Default json
events: # List of events supported by the strategy
- SensitiveUser\User\Domain\Event\AddressAdded:
- address # List of keys to sensitize
Expand All @@ -131,6 +134,7 @@ broadway_sensitive_serializer:
# parameters:
# partial:
# aggregate_key_auto_creation: true
# value_serializer: json
# events:
# - SensitiveUser\User\Domain\Event\AddressAdded:
# - address
Expand Down Expand Up @@ -164,10 +168,12 @@ broadway_sensitive_serializer:
strategy:
name: custom
aggregate_key_auto_creation: true # Enable AggregateKey model auto creation. This is the convenient way, check out the examples and wiki on main library
value_serializer: json # Strategy to serialize payload's values. Default json
#--- Alternatively -----
#strategy:
# name: custom
# parameters:
# custom:
# aggregate_key_auto_creation: true
# value_serializer: json
```
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require": {
"php": "^7.4|^8",
"broadway/broadway-bundle": "^0.5 | ^0.6",
"matiux/broadway-sensitive-serializer": "^0.1",
"matiux/broadway-sensitive-serializer": "^0.3.0",
"symfony/console": "^5.4 | ^6.0",
"symfony/polyfill-php81": "^1.0"
},
Expand Down
Loading

0 comments on commit e82e0b1

Please sign in to comment.