From: Louis Jeckel Date: Tue, 14 Apr 2020 15:12:51 +0000 (+0200) Subject: async webhook try X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=33ccb5874f185359dfaecbaa808ea282603e66e2;p=psq.git async webhook try --- diff --git a/.idea/lettre-pharma.iml b/.idea/lettre-pharma.iml index 1e4836c..5ecb545 100644 --- a/.idea/lettre-pharma.iml +++ b/.idea/lettre-pharma.iml @@ -12,6 +12,7 @@ + diff --git a/.idea/php.xml b/.idea/php.xml index c17ddcd..854870b 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -177,6 +177,7 @@ + diff --git a/app/Http/Controllers/WebhookController.php b/app/Http/Controllers/WebhookController.php index cb80268..e3c9bf8 100644 --- a/app/Http/Controllers/WebhookController.php +++ b/app/Http/Controllers/WebhookController.php @@ -28,7 +28,7 @@ class WebhookController extends Controller ] ]; - event(new DispatchMailgunEvent($data)); + event(new MailgunWebhook($data)); return response('ok', 200); diff --git a/composer.json b/composer.json index a57e2cd..0581218 100644 --- a/composer.json +++ b/composer.json @@ -9,12 +9,14 @@ "license": "MIT", "require": { "php": "^7.2.5", + "ext-dom": "*", "ext-json": "*", "algolia/algoliasearch-client-php": "^2.6", "area17/twill": "^2.0", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^1.0", "guzzlehttp/guzzle": "^6.3", + "itsgoingd/clockwork": "^4.1", "kriswallsmith/buzz": "^1.1", "kub-at/php-simple-html-dom-parser": "^1.9", "laravel/framework": "^7.0", @@ -27,8 +29,7 @@ "pusher/pusher-php-server": "~4.0", "spatie/pdf-to-image": "^2.0", "spatie/pdf-to-text": "^1.3", - "vaites/php-apache-tika": "^0.9.1", - "ext-dom": "*" + "vaites/php-apache-tika": "^0.9.1" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.2", diff --git a/composer.lock b/composer.lock index df0c7ea..9e5545e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "22340b943f2e4f7a75356a529c514ee7", + "content-hash": "b53dc867ef2193fc1017ea0794762a36", "packages": [ { "name": "algolia/algoliasearch-client-php", @@ -1847,6 +1847,64 @@ ], "time": "2019-11-02T09:15:47+00:00" }, + { + "name": "itsgoingd/clockwork", + "version": "v4.1", + "source": { + "type": "git", + "url": "https://github.com/itsgoingd/clockwork.git", + "reference": "74f1b4d2d06ce39c333388cb5b1379e1abc66a32" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/itsgoingd/clockwork/zipball/74f1b4d2d06ce39c333388cb5b1379e1abc66a32", + "reference": "74f1b4d2d06ce39c333388cb5b1379e1abc66a32", + "shasum": "" + }, + "require": { + "php": ">=5.5", + "psr/log": "1.*" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Clockwork\\Support\\Laravel\\ClockworkServiceProvider" + ], + "aliases": { + "Clockwork": "Clockwork\\Support\\Laravel\\Facade" + } + } + }, + "autoload": { + "psr-4": { + "Clockwork\\": "Clockwork/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "itsgoingd", + "email": "itsgoingd@luzer.sk", + "homepage": "https://twitter.com/itsgoingd" + } + ], + "description": "php dev tools integrated to your browser", + "homepage": "https://underground.works/clockwork", + "keywords": [ + "Devtools", + "debugging", + "laravel", + "logging", + "lumen", + "profiling", + "slim" + ], + "time": "2020-04-06T19:13:31+00:00" + }, { "name": "jakub-onderka/php-console-color", "version": "v0.2", @@ -10427,8 +10485,8 @@ "prefer-lowest": false, "platform": { "php": "^7.2.5", - "ext-json": "*", - "ext-dom": "*" + "ext-dom": "*", + "ext-json": "*" }, "platform-dev": [] } diff --git a/storage/clockwork/.gitignore b/storage/clockwork/.gitignore new file mode 100644 index 0000000..3fac1bf --- /dev/null +++ b/storage/clockwork/.gitignore @@ -0,0 +1,3 @@ +*.json +*.json.gz +index