From 624add06a3f0ad5ee9fe5752547261197493fc1d Mon Sep 17 00:00:00 2001 From: Mathieu Ledru Date: Thu, 7 Sep 2023 21:40:27 +0200 Subject: [PATCH] :sparkles: Add webhook support --- CHANGELOG.md | 1 + composer.json | 1 + src/Flow/WebhookFlow.php | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 src/Flow/WebhookFlow.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 501807a5..8993eed7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Add Flow\Driver\RevoltDriver - Add more quality tools from https://github.com/IngeniozIT/php-skeleton +- Add Webhooks from https://speakerdeck.com/fabpot/symfonycon-2022-keynote-webhooks ## v1.1.3 diff --git a/composer.json b/composer.json index 4de15f5f..334ea7ff 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,7 @@ "symfony/doctrine-messenger": "^6.3", "symfony/messenger": "^6.3", "symfony/orm-pack": "^2.4", + "symfony/webhook": "^6.3", "revolt/event-loop": "^1.0" }, "suggest": { 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); + } +}