mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-03 03:56:57 +03:00
37 lines
885 B
PHP
37 lines
885 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core;
|
|
|
|
use Shlinkio\Shlink\CLI\Util\GeolocationDbUpdater;
|
|
use Shlinkio\Shlink\IpGeolocation\Resolver\IpLocationResolverInterface;
|
|
use Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory;
|
|
|
|
return [
|
|
|
|
'events' => [
|
|
'regular' => [],
|
|
'async' => [
|
|
EventDispatcher\ShortUrlVisited::class => [
|
|
EventDispatcher\LocateShortUrlVisit::class,
|
|
],
|
|
],
|
|
],
|
|
|
|
'dependencies' => [
|
|
'factories' => [
|
|
EventDispatcher\LocateShortUrlVisit::class => ConfigAbstractFactory::class,
|
|
],
|
|
],
|
|
|
|
ConfigAbstractFactory::class => [
|
|
EventDispatcher\LocateShortUrlVisit::class => [
|
|
IpLocationResolverInterface::class,
|
|
'em',
|
|
'Logger_Shlink',
|
|
GeolocationDbUpdater::class,
|
|
],
|
|
],
|
|
|
|
];
|