From 583985e7cedefd3e44b8e88b768d46df35d865bd Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 28 Dec 2019 13:50:41 +0100 Subject: [PATCH] Moved VisitLocated as a regular event, since async tasks cannot trigger other async tasks --- module/Core/config/event_dispatcher.config.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/module/Core/config/event_dispatcher.config.php b/module/Core/config/event_dispatcher.config.php index 996669c3..aead1447 100644 --- a/module/Core/config/event_dispatcher.config.php +++ b/module/Core/config/event_dispatcher.config.php @@ -12,20 +12,22 @@ use Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory; return [ 'events' => [ - 'regular' => [], + 'regular' => [ + EventDispatcher\VisitLocated::class => [ + EventDispatcher\NotifyVisitToWebHooks::class, + ], + ], 'async' => [ EventDispatcher\ShortUrlVisited::class => [ EventDispatcher\LocateShortUrlVisit::class, ], - EventDispatcher\VisitLocated::class => [ - EventDispatcher\NotifyVisitToWebHooks::class, - ], ], ], 'dependencies' => [ 'factories' => [ EventDispatcher\LocateShortUrlVisit::class => ConfigAbstractFactory::class, + EventDispatcher\NotifyVisitToWebHooks::class => ConfigAbstractFactory::class, ], ], @@ -43,6 +45,7 @@ return [ 'Logger_Shlink', 'config.url_shortener.visits_webhooks', 'config.url_shortener.domain', + Options\AppOptions::class, ], ],