2019-07-13 05:04:21 -05:00
|
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shlinkio\Shlink\Core;
|
|
|
|
|
|
|
|
use Shlinkio\Shlink\Common\IpGeolocation\IpLocationResolverInterface;
|
|
|
|
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 => [
|
|
|
|
EventDispatcher\LocateShortUrlVisit::class => [IpLocationResolverInterface::class, 'em', 'Logger_Shlink'],
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|