dev-master
9999999-dev http://symfony.comHTTP adapter for Symfony Message component
MIT
The Requires
by Samuel ROZE
symfony guzzle message
HTTP adapter for Symfony Message component
Messages can also come from HTTP messages or go to other APIs through HTTP requests. This adapter will help you doing so in a very easy manner with the Symfony Message component., (*1)
They are two scenarios: - Receive HTTP messages - Send HTTP messages, (*2)
# config/packages/message_http_adapter.yaml message_http_adapter: consumers: - path: '/api/do-something' message: 'App\Message\DoSomething'
# app/config/routing.yml http_messages: resource: . type: http_messages
curl 'http://localhost:8000/api/do-something' \ -X POST \ --data-binary '{"propertyOfDoSomethingObject": "yourValue"}' --compressed
# config/packages/message_http_adapter.yaml message_http_adapter: producers: requestbin: endpoint: 'https://requestb.in/pdjzjmpd'
# config/packages/ framework: message: routing: 'App\Message\Send3rdPartyNotification': message_http_adapter.producer.requestbin
HTTP adapter for Symfony Message component
MIT
symfony guzzle message