12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- declare(strict_types=1);
- namespace Shlinkio\Shlink\Core;
- use Laminas\ServiceManager\AbstractFactory\ConfigAbstractFactory;
- use Psr\EventDispatcher\EventDispatcherInterface;
- use Shlinkio\Shlink\CLI\Util\GeolocationDbUpdater;
- use Shlinkio\Shlink\IpGeolocation\Resolver\IpLocationResolverInterface;
- return [
- 'events' => [
- 'regular' => [
- EventDispatcher\VisitLocated::class => [
- EventDispatcher\NotifyVisitToWebHooks::class,
- ],
- ],
- 'async' => [
- EventDispatcher\ShortUrlVisited::class => [
- EventDispatcher\LocateShortUrlVisit::class,
- ],
- ],
- ],
- 'dependencies' => [
- 'factories' => [
- EventDispatcher\LocateShortUrlVisit::class => ConfigAbstractFactory::class,
- EventDispatcher\NotifyVisitToWebHooks::class => ConfigAbstractFactory::class,
- ],
- ],
- ConfigAbstractFactory::class => [
- EventDispatcher\LocateShortUrlVisit::class => [
- IpLocationResolverInterface::class,
- 'em',
- 'Logger_Shlink',
- GeolocationDbUpdater::class,
- EventDispatcherInterface::class,
- ],
- EventDispatcher\NotifyVisitToWebHooks::class => [
- 'httpClient',
- 'em',
- 'Logger_Shlink',
- 'config.url_shortener.visits_webhooks',
- 'config.url_shortener.domain',
- Options\AppOptions::class,
- ],
- ],
- ];
|