Skip to content

Commit ab896c2

Browse files
authored
Update publishing-config.md
1 parent 02a8b90 commit ab896c2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/configuration/publishing-config.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,20 @@ It should now look like this.
5656
```php
5757
'base_model' => MongoDB\Laravel\Eloquent\Model::class,
5858
```
59+
60+
## Changing Serializer
61+
62+
This setting allows you to optionally use the Base64 serializer instead of Y (kind of like yEnc encoding where it only gets rid of null bytes). The tradeoff is between speed and size. Base64 is faster but adds more overhead. Y is slower but a lot smaller. If you change this it will only affect new workflows and old workflows will revert to whatever they were encoded with to ensure compatibility.
63+
64+
The default serializer setting in `workflows.php` is:
65+
66+
```php
67+
'serializer' => Workflow\Serializers\Y::class,
68+
```
69+
70+
To use Base64 instead, update it to:
71+
72+
```php
73+
'serializer' => Workflow\Serializers\Base64::class,
74+
```
75+

0 commit comments

Comments
 (0)