Skip to content

Commit

Permalink
Update usage in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed Mar 11, 2023
1 parent 3e8c16c commit ebdcac8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ composer require tienvx/pact-messenger-bundle

namespace App\MessageDispatcher;

use Symfony\Component\Messenger\Stamp\TransportNamesStamp;
use Tienvx\Bundle\PactMessengerBundle\Service\EnvelopeCollectorInterface;
use Tienvx\Bundle\PactProviderBundle\Attribute\AsMessageDispatcher;
use Tienvx\Bundle\PactProviderBundle\Model\Message;
Expand All @@ -34,6 +35,8 @@ class UserDispatcher implements DispatcherInterface

return new Message(serialize($envelope->getMessage()), 'text/plain', json_encode(['transports' => $transports]));
}

return null;
}
}
```
Expand Down

0 comments on commit ebdcac8

Please sign in to comment.