2019-07-13 05:04:21 -05:00
|
|
|
<?php
|
2019-10-05 10:26:10 -05:00
|
|
|
|
2019-07-13 05:04:21 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shlinkio\Shlink\Core;
|
|
|
|
|
2019-07-20 04:21:00 -05:00
|
|
|
use Shlinkio\Shlink\CLI\Util\GeolocationDbUpdater;
|
2019-08-10 06:56:06 -05:00
|
|
|
use Shlinkio\Shlink\IpGeolocation\Resolver\IpLocationResolverInterface;
|
2019-07-13 05:04:21 -05:00
|
|
|
use Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory;
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'events' => [
|
2019-07-18 12:07:07 -05:00
|
|
|
'regular' => [],
|
|
|
|
'async' => [
|
|
|
|
EventDispatcher\ShortUrlVisited::class => [
|
|
|
|
EventDispatcher\LocateShortUrlVisit::class,
|
|
|
|
],
|
2019-07-13 05:04:21 -05:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'dependencies' => [
|
2019-07-13 08:43:54 -05:00
|
|
|
'factories' => [
|
|
|
|
EventDispatcher\LocateShortUrlVisit::class => ConfigAbstractFactory::class,
|
|
|
|
],
|
2019-07-13 05:04:21 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
ConfigAbstractFactory::class => [
|
2019-07-20 04:21:00 -05:00
|
|
|
EventDispatcher\LocateShortUrlVisit::class => [
|
|
|
|
IpLocationResolverInterface::class,
|
|
|
|
'em',
|
|
|
|
'Logger_Shlink',
|
|
|
|
GeolocationDbUpdater::class,
|
|
|
|
],
|
2019-07-13 05:04:21 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|