From 137bf01b838dc45215bf1444af931fb8784f4e41 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 59ab2a36..b87781cc 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,8 @@ "react/async": "^4.1", "symfony/doctrine-messenger": "^6.3", "symfony/messenger": "^6.3", - "symfony/orm-pack": "^2.4" + "symfony/orm-pack": "^2.4", + "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 c87d879a..dcc1b3b6 100644 --- a/docs/src/content/en/docs/getting-started/changelog.md +++ b/docs/src/content/en/docs/getting-started/changelog.md @@ -23,6 +23,7 @@ toc: true - Update `tick` that now return a Closure to cleanup tick interval - Remove `start` and `stop` - Add Fiber Driver from https://github.com/jolicode/castor/blob/main/src/functions.php +- 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); + } +}