From 5e879bca2578c829e434b0f03720dc29902f1787 Mon Sep 17 00:00:00 2001 From: Mathieu Ledru Date: Thu, 11 May 2023 13:33:02 +0200 Subject: [PATCH] :sparkles: Add webhook support --- composer.json | 3 ++- .../en/docs/getting-started/changelog.md | 1 + src/Flow/WebhookFlow.php | 27 +++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 src/Flow/WebhookFlow.php diff --git a/composer.json b/composer.json index 0e4d5979..4261ab18 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,8 @@ "react/async": "4.x-dev", "symfony/doctrine-messenger": "^6.3", "symfony/messenger": "^6.3", - "symfony/orm-pack": "^2.3" + "symfony/orm-pack": "^2.3", + "symfony/webhook": "^6.3" }, "suggest": { "amphp/amp": "Provide asynchronous with AMP", diff --git a/docs/src/content/en/docs/getting-started/changelog.md b/docs/src/content/en/docs/getting-started/changelog.md index 4da9c6b8..0390b0ee 100644 --- a/docs/src/content/en/docs/getting-started/changelog.md +++ b/docs/src/content/en/docs/getting-started/changelog.md @@ -17,6 +17,7 @@ toc: true - Upgrade to Symfony 6.3 - Refactor docs structure +- Add Webhooks from https://speakerdeck.com/fabpot/symfonycon-2022-keynote-webhooks ### 1.1.2 diff --git a/src/Flow/WebhookFlow.php b/src/Flow/WebhookFlow.php new file mode 100644 index 00000000..25016e61 --- /dev/null +++ b/src/Flow/WebhookFlow.php @@ -0,0 +1,27 @@ +flow->fn($flow); + } +}