mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Moved VisitLocated as a regular event, since async tasks cannot trigger other async tasks
This commit is contained in:
parent
b17bcb6c93
commit
583985e7ce
1 changed files with 7 additions and 4 deletions
|
@ -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,
|
||||
],
|
||||
],
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue