Skip to content

bestit/commercetools-message-serializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Just an very simple serializer for symfony messenger and CommerceTools messages.

Step 1: Add package

$ composer require best-it/commercetools-message-serializer

Step 2: Create service

# services.yaml

services:
    BestIt\Messenger\CommerceToolsSerializer:
        class: BestIt\Messenger\CommerceToolsSerializer

Step 3: Use service

# messenger.yaml

framework:
    messenger:
        serializer:
            default_serializer: 'BestIt\Messenger\CommerceToolsSerializer'

Every message has a header parameter X-CommerceTools-Message which contains the full qualified class name of the CommerceTools message (e.g.: Commercetools\Core\Model\Message\OrderCreatedMessage).

About

A simple message serializer for symfony messenger

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages