PHRAS-3555 add more webhook events

This commit is contained in:
aynsix
2021-11-16 17:15:49 +03:00
parent 3a5452bae7
commit 074920353a
30 changed files with 896 additions and 153 deletions

View File

@@ -10,6 +10,7 @@ use Alchemy\Phrasea\Webhook\Processor\FeedEntryProcessorFactory;
use Alchemy\Phrasea\Webhook\Processor\OrderNotificationProcessorFactory;
use Alchemy\Phrasea\Webhook\Processor\ProcessorFactory;
use Alchemy\Phrasea\Webhook\Processor\ProcessorInterface;
use Alchemy\Phrasea\Webhook\Processor\RecordEventProcessor;
use Alchemy\Phrasea\Webhook\Processor\UserDeletedProcessorFactory;
use Alchemy\Phrasea\Webhook\Processor\UserRegistrationProcessorFactory;
use Alchemy\Phrasea\Webhook\Processor\SubdefEventProcessor;
@@ -34,6 +35,9 @@ class EventProcessorFactory
$this->registerCallableFactory(WebhookEvent::RECORD_SUBDEF_TYPE, function () {
return new SubdefEventProcessor();
});
$this->registerCallableFactory(WebhookEvent::RECORD_TYPE, function () {
return new RecordEventProcessor();
});
}
/**