2016-07-19 18:01:39 +02:00
|
|
|
<?php
|
2019-10-05 17:26:10 +02:00
|
|
|
|
2017-10-12 10:13:20 +02:00
|
|
|
declare(strict_types=1);
|
2017-07-22 13:48:30 +02:00
|
|
|
|
2018-12-01 21:38:29 +01:00
|
|
|
namespace Shlinkio\Shlink\Core;
|
|
|
|
|
|
2020-01-01 21:11:53 +01:00
|
|
|
use Laminas\ServiceManager\AbstractFactory\ConfigAbstractFactory;
|
2020-11-22 18:03:27 +01:00
|
|
|
use Laminas\ServiceManager\Factory\InvokableFactory;
|
2019-07-13 12:04:21 +02:00
|
|
|
use Psr\EventDispatcher\EventDispatcherInterface;
|
2022-12-13 19:37:02 +01:00
|
|
|
use Shlinkio\Shlink\Common\Doctrine\EntityRepositoryFactory;
|
2024-10-16 08:55:38 +02:00
|
|
|
use Shlinkio\Shlink\Core\Config\Options\NotFoundRedirectOptions;
|
2024-12-10 10:58:08 +01:00
|
|
|
use Shlinkio\Shlink\Core\Geolocation\GeolocationDbUpdater;
|
2024-04-12 09:13:48 +02:00
|
|
|
use Shlinkio\Shlink\Core\ShortUrl\Helper\ShortUrlStringifier;
|
2020-10-22 18:12:22 +02:00
|
|
|
use Shlinkio\Shlink\Importer\ImportedLinksProcessorInterface;
|
2024-11-15 08:51:57 +01:00
|
|
|
use Shlinkio\Shlink\IpGeolocation\GeoLite2\DbUpdater;
|
2022-09-18 18:44:01 +02:00
|
|
|
use Shlinkio\Shlink\IpGeolocation\Resolver\IpLocationResolverInterface;
|
2023-05-21 18:08:17 +02:00
|
|
|
use Symfony\Component\Lock;
|
2016-07-19 18:01:39 +02:00
|
|
|
|
2024-12-10 10:58:08 +01:00
|
|
|
use const Shlinkio\Shlink\LOCAL_LOCK_FACTORY;
|
|
|
|
|
|
2016-07-19 18:01:39 +02:00
|
|
|
return [
|
|
|
|
|
|
2016-07-31 16:30:05 +02:00
|
|
|
'dependencies' => [
|
2016-07-19 18:01:39 +02:00
|
|
|
'factories' => [
|
2021-02-08 21:38:19 +01:00
|
|
|
ErrorHandler\NotFoundTypeResolverMiddleware::class => ConfigAbstractFactory::class,
|
|
|
|
|
ErrorHandler\NotFoundTrackerMiddleware::class => ConfigAbstractFactory::class,
|
2019-11-23 10:25:12 +01:00
|
|
|
ErrorHandler\NotFoundRedirectHandler::class => ConfigAbstractFactory::class,
|
2020-11-22 18:03:27 +01:00
|
|
|
ErrorHandler\NotFoundTemplateHandler::class => InvokableFactory::class,
|
2018-12-01 21:38:29 +01:00
|
|
|
|
2024-10-24 08:49:58 +02:00
|
|
|
Config\Options\AppOptions::class => [Config\Options\AppOptions::class, 'fromEnv'],
|
2024-10-16 08:55:38 +02:00
|
|
|
Config\Options\DeleteShortUrlsOptions::class => [Config\Options\DeleteShortUrlsOptions::class, 'fromEnv'],
|
|
|
|
|
Config\Options\NotFoundRedirectOptions::class => [Config\Options\NotFoundRedirectOptions::class, 'fromEnv'],
|
|
|
|
|
Config\Options\RedirectOptions::class => [Config\Options\RedirectOptions::class, 'fromEnv'],
|
|
|
|
|
Config\Options\UrlShortenerOptions::class => [Config\Options\UrlShortenerOptions::class, 'fromEnv'],
|
|
|
|
|
Config\Options\TrackingOptions::class => [Config\Options\TrackingOptions::class, 'fromEnv'],
|
|
|
|
|
Config\Options\QrCodeOptions::class => [Config\Options\QrCodeOptions::class, 'fromEnv'],
|
|
|
|
|
Config\Options\RabbitMqOptions::class => [Config\Options\RabbitMqOptions::class, 'fromEnv'],
|
|
|
|
|
Config\Options\RobotsOptions::class => [Config\Options\RobotsOptions::class, 'fromEnv'],
|
2016-08-07 14:44:33 +02:00
|
|
|
|
2024-02-27 21:00:53 +01:00
|
|
|
RedirectRule\ShortUrlRedirectRuleService::class => ConfigAbstractFactory::class,
|
2024-02-24 23:10:08 +01:00
|
|
|
RedirectRule\ShortUrlRedirectionResolver::class => ConfigAbstractFactory::class,
|
|
|
|
|
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\UrlShortener::class => ConfigAbstractFactory::class,
|
|
|
|
|
ShortUrl\ShortUrlService::class => ConfigAbstractFactory::class,
|
2022-12-13 19:37:02 +01:00
|
|
|
ShortUrl\ShortUrlListService::class => ConfigAbstractFactory::class,
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\DeleteShortUrlService::class => ConfigAbstractFactory::class,
|
|
|
|
|
ShortUrl\ShortUrlResolver::class => ConfigAbstractFactory::class,
|
2023-05-14 12:00:08 +02:00
|
|
|
ShortUrl\ShortUrlVisitsDeleter::class => ConfigAbstractFactory::class,
|
2022-09-23 18:46:51 +02:00
|
|
|
ShortUrl\Helper\ShortCodeUniquenessHelper::class => ConfigAbstractFactory::class,
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\Resolver\PersistenceShortUrlRelationResolver::class => ConfigAbstractFactory::class,
|
|
|
|
|
ShortUrl\Helper\ShortUrlStringifier::class => ConfigAbstractFactory::class,
|
|
|
|
|
ShortUrl\Helper\ShortUrlTitleResolutionHelper::class => ConfigAbstractFactory::class,
|
|
|
|
|
ShortUrl\Helper\ShortUrlRedirectionBuilder::class => ConfigAbstractFactory::class,
|
|
|
|
|
ShortUrl\Transformer\ShortUrlDataTransformer::class => ConfigAbstractFactory::class,
|
|
|
|
|
ShortUrl\Middleware\ExtraPathRedirectMiddleware::class => ConfigAbstractFactory::class,
|
2022-09-30 17:19:07 +02:00
|
|
|
ShortUrl\Middleware\TrimTrailingSlashMiddleware::class => ConfigAbstractFactory::class,
|
2024-11-09 09:39:56 +01:00
|
|
|
ShortUrl\Repository\ShortUrlRepository::class => [
|
|
|
|
|
EntityRepositoryFactory::class,
|
|
|
|
|
ShortUrl\Entity\ShortUrl::class,
|
|
|
|
|
],
|
2022-12-13 19:37:02 +01:00
|
|
|
ShortUrl\Repository\ShortUrlListRepository::class => [
|
|
|
|
|
EntityRepositoryFactory::class,
|
|
|
|
|
ShortUrl\Entity\ShortUrl::class,
|
|
|
|
|
],
|
2022-12-14 14:38:22 +01:00
|
|
|
ShortUrl\Repository\CrawlableShortCodesQuery::class => [
|
|
|
|
|
EntityRepositoryFactory::class,
|
|
|
|
|
ShortUrl\Entity\ShortUrl::class,
|
|
|
|
|
],
|
2024-04-03 09:41:05 +02:00
|
|
|
ShortUrl\Repository\ExpiredShortUrlsRepository::class => [
|
|
|
|
|
EntityRepositoryFactory::class,
|
|
|
|
|
ShortUrl\Entity\ShortUrl::class,
|
|
|
|
|
],
|
2021-02-09 22:11:09 +01:00
|
|
|
|
|
|
|
|
Tag\TagService::class => ConfigAbstractFactory::class,
|
2024-11-09 09:25:01 +01:00
|
|
|
Tag\Repository\TagRepository::class => [EntityRepositoryFactory::class, Tag\Entity\Tag::class],
|
2021-02-09 22:11:09 +01:00
|
|
|
|
2020-09-27 09:53:12 +02:00
|
|
|
Domain\DomainService::class => ConfigAbstractFactory::class,
|
2024-11-09 09:34:24 +01:00
|
|
|
Domain\Repository\DomainRepository::class => [EntityRepositoryFactory::class, Domain\Entity\Domain::class],
|
2016-07-19 18:01:39 +02:00
|
|
|
|
2021-02-09 22:11:09 +01:00
|
|
|
Visit\VisitsTracker::class => ConfigAbstractFactory::class,
|
2021-07-15 17:23:09 +02:00
|
|
|
Visit\RequestTracker::class => ConfigAbstractFactory::class,
|
2023-05-18 09:01:57 +02:00
|
|
|
Visit\VisitsDeleter::class => ConfigAbstractFactory::class,
|
2022-09-23 14:50:26 +02:00
|
|
|
Visit\Geolocation\VisitLocator::class => ConfigAbstractFactory::class,
|
|
|
|
|
Visit\Geolocation\VisitToLocationHelper::class => ConfigAbstractFactory::class,
|
2021-02-09 22:11:09 +01:00
|
|
|
Visit\VisitsStatsHelper::class => ConfigAbstractFactory::class,
|
2024-04-12 18:29:55 +02:00
|
|
|
Visit\Repository\VisitIterationRepository::class => [
|
2022-12-14 12:28:23 +01:00
|
|
|
EntityRepositoryFactory::class,
|
|
|
|
|
Visit\Entity\Visit::class,
|
|
|
|
|
],
|
2023-05-14 12:00:08 +02:00
|
|
|
Visit\Repository\VisitDeleterRepository::class => [
|
|
|
|
|
EntityRepositoryFactory::class,
|
|
|
|
|
Visit\Entity\Visit::class,
|
|
|
|
|
],
|
2024-03-26 23:26:44 +01:00
|
|
|
Visit\Listener\ShortUrlVisitsCountTracker::class => InvokableFactory::class,
|
2024-04-01 10:22:51 +02:00
|
|
|
Visit\Listener\OrphanVisitsCountTracker::class => InvokableFactory::class,
|
2021-02-09 22:11:09 +01:00
|
|
|
|
2020-10-25 13:20:34 +01:00
|
|
|
Util\DoctrineBatchHelper::class => ConfigAbstractFactory::class,
|
2020-11-10 18:08:25 +01:00
|
|
|
Util\RedirectResponseHelper::class => ConfigAbstractFactory::class,
|
2019-11-16 10:06:55 +01:00
|
|
|
|
2021-07-21 09:28:21 +02:00
|
|
|
Config\NotFoundRedirectResolver::class => ConfigAbstractFactory::class,
|
|
|
|
|
|
2017-07-22 13:48:30 +02:00
|
|
|
Action\RedirectAction::class => ConfigAbstractFactory::class,
|
2018-03-26 20:13:03 +02:00
|
|
|
Action\PixelAction::class => ConfigAbstractFactory::class,
|
2017-07-22 13:48:30 +02:00
|
|
|
Action\QrCodeAction::class => ConfigAbstractFactory::class,
|
2021-05-22 07:15:34 +02:00
|
|
|
Action\RobotsAction::class => ConfigAbstractFactory::class,
|
2018-12-01 21:38:29 +01:00
|
|
|
|
2022-07-27 09:38:47 +02:00
|
|
|
EventDispatcher\PublishingUpdatesGenerator::class => ConfigAbstractFactory::class,
|
2020-10-22 18:12:22 +02:00
|
|
|
|
2024-12-10 10:58:08 +01:00
|
|
|
Geolocation\GeolocationDbUpdater::class => ConfigAbstractFactory::class,
|
2024-11-15 08:51:57 +01:00
|
|
|
Geolocation\Middleware\IpGeolocationMiddleware::class => ConfigAbstractFactory::class,
|
|
|
|
|
|
2020-10-22 18:12:22 +02:00
|
|
|
Importer\ImportedLinksProcessor::class => ConfigAbstractFactory::class,
|
2021-05-22 07:15:34 +02:00
|
|
|
|
2021-05-22 09:34:42 +02:00
|
|
|
Crawling\CrawlingHelper::class => ConfigAbstractFactory::class,
|
2023-11-15 19:57:58 +01:00
|
|
|
|
2024-10-16 08:55:38 +02:00
|
|
|
Matomo\MatomoOptions::class => [Matomo\MatomoOptions::class, 'fromEnv'],
|
2023-11-15 19:57:58 +01:00
|
|
|
Matomo\MatomoTrackerBuilder::class => ConfigAbstractFactory::class,
|
2024-04-12 09:13:48 +02:00
|
|
|
Matomo\MatomoVisitSender::class => ConfigAbstractFactory::class,
|
2020-10-22 18:12:22 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
|
|
'aliases' => [
|
|
|
|
|
ImportedLinksProcessorInterface::class => Importer\ImportedLinksProcessor::class,
|
2016-07-19 18:01:39 +02:00
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
|
2017-07-22 13:48:30 +02:00
|
|
|
ConfigAbstractFactory::class => [
|
2023-11-15 19:57:58 +01:00
|
|
|
Matomo\MatomoTrackerBuilder::class => [Matomo\MatomoOptions::class],
|
2024-04-13 09:55:40 +02:00
|
|
|
Matomo\MatomoVisitSender::class => [
|
|
|
|
|
Matomo\MatomoTrackerBuilder::class,
|
|
|
|
|
ShortUrlStringifier::class,
|
|
|
|
|
Visit\Repository\VisitIterationRepository::class,
|
|
|
|
|
],
|
2023-11-15 19:57:58 +01:00
|
|
|
|
2021-02-08 21:38:19 +01:00
|
|
|
ErrorHandler\NotFoundTypeResolverMiddleware::class => ['config.router.base_path'],
|
2021-07-15 17:23:09 +02:00
|
|
|
ErrorHandler\NotFoundTrackerMiddleware::class => [Visit\RequestTracker::class],
|
2020-11-10 18:08:25 +01:00
|
|
|
ErrorHandler\NotFoundRedirectHandler::class => [
|
|
|
|
|
NotFoundRedirectOptions::class,
|
2021-07-21 09:28:21 +02:00
|
|
|
Config\NotFoundRedirectResolver::class,
|
|
|
|
|
Domain\DomainService::class,
|
2020-11-10 18:08:25 +01:00
|
|
|
],
|
2017-10-13 11:55:14 +02:00
|
|
|
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\UrlShortener::class => [
|
2021-02-05 17:59:34 +01:00
|
|
|
ShortUrl\Helper\ShortUrlTitleResolutionHelper::class,
|
2020-10-25 11:16:42 +01:00
|
|
|
'em',
|
2020-11-07 09:31:46 +01:00
|
|
|
ShortUrl\Resolver\PersistenceShortUrlRelationResolver::class,
|
2022-09-23 18:46:51 +02:00
|
|
|
ShortUrl\Helper\ShortCodeUniquenessHelper::class,
|
2022-07-24 11:07:20 +02:00
|
|
|
EventDispatcherInterface::class,
|
2024-11-09 09:43:55 +01:00
|
|
|
ShortUrl\Repository\ShortUrlRepository::class,
|
2020-10-25 11:16:42 +01:00
|
|
|
],
|
2021-02-08 19:50:17 +01:00
|
|
|
Visit\VisitsTracker::class => [
|
2020-05-08 13:10:58 +02:00
|
|
|
'em',
|
|
|
|
|
EventDispatcherInterface::class,
|
2024-10-16 08:55:38 +02:00
|
|
|
Config\Options\TrackingOptions::class,
|
2020-05-08 13:10:58 +02:00
|
|
|
],
|
2024-10-16 08:55:38 +02:00
|
|
|
Visit\RequestTracker::class => [Visit\VisitsTracker::class, Config\Options\TrackingOptions::class],
|
2023-05-18 09:01:57 +02:00
|
|
|
Visit\VisitsDeleter::class => [Visit\Repository\VisitDeleterRepository::class],
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\ShortUrlService::class => [
|
2021-01-31 12:12:21 +01:00
|
|
|
'em',
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\ShortUrlResolver::class,
|
2021-02-05 17:59:34 +01:00
|
|
|
ShortUrl\Helper\ShortUrlTitleResolutionHelper::class,
|
2021-01-31 12:12:21 +01:00
|
|
|
ShortUrl\Resolver\PersistenceShortUrlRelationResolver::class,
|
2022-12-13 19:37:02 +01:00
|
|
|
],
|
|
|
|
|
ShortUrl\ShortUrlListService::class => [
|
|
|
|
|
ShortUrl\Repository\ShortUrlListRepository::class,
|
2024-10-16 08:55:38 +02:00
|
|
|
Config\Options\UrlShortenerOptions::class,
|
2021-01-31 12:12:21 +01:00
|
|
|
],
|
2024-04-12 18:29:55 +02:00
|
|
|
Visit\Geolocation\VisitLocator::class => ['em', Visit\Repository\VisitIterationRepository::class],
|
2022-09-23 14:50:26 +02:00
|
|
|
Visit\Geolocation\VisitToLocationHelper::class => [IpLocationResolverInterface::class],
|
2020-05-01 11:40:02 +02:00
|
|
|
Visit\VisitsStatsHelper::class => ['em'],
|
2024-11-09 09:25:01 +01:00
|
|
|
Tag\TagService::class => ['em', Tag\Repository\TagRepository::class],
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\DeleteShortUrlService::class => [
|
2020-02-01 22:54:02 +01:00
|
|
|
'em',
|
2024-10-16 08:55:38 +02:00
|
|
|
Config\Options\DeleteShortUrlsOptions::class,
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\ShortUrlResolver::class,
|
2024-04-03 18:57:09 +02:00
|
|
|
ShortUrl\Repository\ExpiredShortUrlsRepository::class,
|
2020-02-01 22:54:02 +01:00
|
|
|
],
|
2024-11-09 09:39:56 +01:00
|
|
|
ShortUrl\ShortUrlResolver::class => [
|
|
|
|
|
ShortUrl\Repository\ShortUrlRepository::class,
|
|
|
|
|
Config\Options\UrlShortenerOptions::class,
|
|
|
|
|
],
|
2023-05-14 12:00:08 +02:00
|
|
|
ShortUrl\ShortUrlVisitsDeleter::class => [
|
|
|
|
|
Visit\Repository\VisitDeleterRepository::class,
|
|
|
|
|
ShortUrl\ShortUrlResolver::class,
|
|
|
|
|
],
|
2024-11-09 09:47:47 +01:00
|
|
|
ShortUrl\Helper\ShortCodeUniquenessHelper::class => [
|
|
|
|
|
ShortUrl\Repository\ShortUrlRepository::class,
|
|
|
|
|
Config\Options\UrlShortenerOptions::class,
|
|
|
|
|
],
|
2024-11-09 09:34:24 +01:00
|
|
|
Domain\DomainService::class => [
|
|
|
|
|
'em',
|
|
|
|
|
Config\Options\UrlShortenerOptions::class,
|
|
|
|
|
Domain\Repository\DomainRepository::class,
|
|
|
|
|
],
|
2017-07-22 13:48:30 +02:00
|
|
|
|
2020-10-25 13:20:34 +01:00
|
|
|
Util\DoctrineBatchHelper::class => ['em'],
|
2024-10-16 08:55:38 +02:00
|
|
|
Util\RedirectResponseHelper::class => [Config\Options\RedirectOptions::class],
|
2019-11-16 10:06:55 +01:00
|
|
|
|
2021-10-03 16:45:13 +02:00
|
|
|
Config\NotFoundRedirectResolver::class => [Util\RedirectResponseHelper::class, 'Logger_Shlink'],
|
2024-02-27 21:00:53 +01:00
|
|
|
|
|
|
|
|
RedirectRule\ShortUrlRedirectRuleService::class => ['em'],
|
|
|
|
|
RedirectRule\ShortUrlRedirectionResolver::class => [RedirectRule\ShortUrlRedirectRuleService::class],
|
2021-07-21 09:28:21 +02:00
|
|
|
|
2018-01-14 09:24:33 +01:00
|
|
|
Action\RedirectAction::class => [
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\ShortUrlResolver::class,
|
2021-07-15 17:23:09 +02:00
|
|
|
Visit\RequestTracker::class,
|
2021-07-15 13:28:31 +02:00
|
|
|
ShortUrl\Helper\ShortUrlRedirectionBuilder::class,
|
2020-11-10 18:08:25 +01:00
|
|
|
Util\RedirectResponseHelper::class,
|
2018-01-14 09:24:33 +01:00
|
|
|
],
|
2022-09-23 18:42:38 +02:00
|
|
|
Action\PixelAction::class => [ShortUrl\ShortUrlResolver::class, Visit\RequestTracker::class],
|
2020-01-26 19:21:51 +01:00
|
|
|
Action\QrCodeAction::class => [
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\ShortUrlResolver::class,
|
2021-02-01 22:55:52 +01:00
|
|
|
ShortUrl\Helper\ShortUrlStringifier::class,
|
2020-01-26 19:21:51 +01:00
|
|
|
'Logger_Shlink',
|
2024-10-16 08:55:38 +02:00
|
|
|
Config\Options\QrCodeOptions::class,
|
2020-01-26 19:21:51 +01:00
|
|
|
],
|
2024-10-16 08:55:38 +02:00
|
|
|
Action\RobotsAction::class => [Crawling\CrawlingHelper::class, Config\Options\RobotsOptions::class],
|
2018-12-01 21:38:29 +01:00
|
|
|
|
2023-05-21 18:08:17 +02:00
|
|
|
ShortUrl\Resolver\PersistenceShortUrlRelationResolver::class => [
|
|
|
|
|
'em',
|
2024-10-16 08:55:38 +02:00
|
|
|
Config\Options\UrlShortenerOptions::class,
|
2023-05-21 18:08:17 +02:00
|
|
|
Lock\LockFactory::class,
|
|
|
|
|
],
|
2024-10-20 12:52:00 +02:00
|
|
|
ShortUrl\Helper\ShortUrlStringifier::class => [
|
|
|
|
|
Config\Options\UrlShortenerOptions::class,
|
|
|
|
|
'config.router.base_path',
|
|
|
|
|
],
|
2024-10-16 08:55:38 +02:00
|
|
|
ShortUrl\Helper\ShortUrlTitleResolutionHelper::class => [
|
|
|
|
|
'httpClient',
|
|
|
|
|
Config\Options\UrlShortenerOptions::class,
|
2025-01-28 10:04:30 +01:00
|
|
|
'Logger_Shlink',
|
2024-10-16 08:55:38 +02:00
|
|
|
],
|
2024-02-24 23:10:08 +01:00
|
|
|
ShortUrl\Helper\ShortUrlRedirectionBuilder::class => [
|
2024-10-16 08:55:38 +02:00
|
|
|
Config\Options\TrackingOptions::class,
|
2024-02-24 23:10:08 +01:00
|
|
|
RedirectRule\ShortUrlRedirectionResolver::class,
|
|
|
|
|
],
|
2021-02-01 22:55:52 +01:00
|
|
|
ShortUrl\Transformer\ShortUrlDataTransformer::class => [ShortUrl\Helper\ShortUrlStringifier::class],
|
2021-07-15 16:54:54 +02:00
|
|
|
ShortUrl\Middleware\ExtraPathRedirectMiddleware::class => [
|
2022-09-23 18:42:38 +02:00
|
|
|
ShortUrl\ShortUrlResolver::class,
|
2021-07-15 17:23:09 +02:00
|
|
|
Visit\RequestTracker::class,
|
2021-07-15 16:54:54 +02:00
|
|
|
ShortUrl\Helper\ShortUrlRedirectionBuilder::class,
|
|
|
|
|
Util\RedirectResponseHelper::class,
|
2024-10-16 08:55:38 +02:00
|
|
|
Config\Options\UrlShortenerOptions::class,
|
2021-07-15 16:54:54 +02:00
|
|
|
],
|
2024-10-16 08:55:38 +02:00
|
|
|
ShortUrl\Middleware\TrimTrailingSlashMiddleware::class => [Config\Options\UrlShortenerOptions::class],
|
2020-04-12 17:05:59 +02:00
|
|
|
|
2024-03-24 17:06:11 +01:00
|
|
|
EventDispatcher\PublishingUpdatesGenerator::class => [ShortUrl\Transformer\ShortUrlDataTransformer::class],
|
2020-10-22 18:12:22 +02:00
|
|
|
|
2024-12-10 10:58:08 +01:00
|
|
|
GeolocationDbUpdater::class => [
|
|
|
|
|
DbUpdater::class,
|
|
|
|
|
LOCAL_LOCK_FACTORY,
|
|
|
|
|
Config\Options\TrackingOptions::class,
|
2024-12-15 10:05:32 +01:00
|
|
|
'em',
|
2024-12-10 10:58:08 +01:00
|
|
|
],
|
2024-11-15 08:51:57 +01:00
|
|
|
Geolocation\Middleware\IpGeolocationMiddleware::class => [
|
|
|
|
|
IpLocationResolverInterface::class,
|
|
|
|
|
DbUpdater::class,
|
|
|
|
|
'Logger_Shlink',
|
|
|
|
|
Config\Options\TrackingOptions::class,
|
|
|
|
|
],
|
|
|
|
|
|
2020-10-25 11:16:42 +01:00
|
|
|
Importer\ImportedLinksProcessor::class => [
|
|
|
|
|
'em',
|
2020-11-07 09:31:46 +01:00
|
|
|
ShortUrl\Resolver\PersistenceShortUrlRelationResolver::class,
|
2022-09-23 18:46:51 +02:00
|
|
|
ShortUrl\Helper\ShortCodeUniquenessHelper::class,
|
2020-10-25 13:20:34 +01:00
|
|
|
Util\DoctrineBatchHelper::class,
|
2024-12-22 12:42:06 +01:00
|
|
|
RedirectRule\ShortUrlRedirectRuleService::class,
|
2020-10-25 11:16:42 +01:00
|
|
|
],
|
2021-05-22 09:34:42 +02:00
|
|
|
|
2023-02-10 20:26:18 +01:00
|
|
|
Crawling\CrawlingHelper::class => [ShortUrl\Repository\CrawlableShortCodesQuery::class],
|
2017-07-22 13:48:30 +02:00
|
|
|
],
|
|
|
|
|
|
2016-07-19 18:01:39 +02:00
|
|
|
];
|