Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
Mention Stamps in Readme
Browse files Browse the repository at this point in the history
closes #1
  • Loading branch information
kunicmarko20 committed Jun 7, 2019
1 parent 188483f commit 3bcf81b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Documentation
* [Installation](#installation)
* [Symfony](#symfony)
* [Configuration](#configuration)
* [Stamps](#stamps)

## Installation

Expand Down Expand Up @@ -56,3 +57,18 @@ framework:
serializer:
default_serializer: messenger.transport.jms_serializer
```

## Stamps

This library provides additional stamps that will use JMS Deserialization/Serialization Context
for serializing/deserializing messages.

```php
use JMS\Serializer\SerializationContext;
use KunicMarko\JMSMessengerAdapter\Stamp\SerializationContextStamp;

$context = SerializationContext::create();
$context->setGroups(['foo']);

$messageBus->dispatch(new Message(), [new SerializationContextStamp($context)]);
```

0 comments on commit 3bcf81b

Please sign in to comment.