From 2e0578145b7afc86c686188aff4833d515b31d4a 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 | 9 +++++---- src/Flow/WebhookFlow.php | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 src/Flow/WebhookFlow.php diff --git a/composer.json b/composer.json index ef43807a..793024a7 100644 --- a/composer.json +++ b/composer.json @@ -28,9 +28,10 @@ "phpstan/phpstan": "^1.9", "phpunit/phpunit": "^9.5", "react/async": "4.x-dev", - "symfony/doctrine-messenger": "^6.2", - "symfony/messenger": "^6.2", - "symfony/orm-pack": "^2.3" + "symfony/doctrine-messenger": "^6.3.x-dev", + "symfony/messenger": "^6.3.x-dev", + "symfony/orm-pack": "^2.3", + "symfony/webhook": "^6.3.x-dev" }, "suggest": { "amphp/amp": "Provide asynchronous with AMP", @@ -59,5 +60,5 @@ "phpstan": "Execute PHPStan analysis", "test": "Launch PHPUnit test suite" }, - "minimum-stability": "stable" + "minimum-stability": "dev" } 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); + } +}