shlink/module/Core/config/dependencies.config.php

30 lines
1 KiB
PHP
Raw Normal View History

2016-07-19 18:01:39 +02:00
<?php
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
2016-08-09 10:24:42 +02:00
use Shlinkio\Shlink\Core\Action;
use Shlinkio\Shlink\Core\Middleware;
use Shlinkio\Shlink\Core\Options;
2016-07-19 18:01:39 +02:00
use Shlinkio\Shlink\Core\Service;
return [
'dependencies' => [
2016-07-19 18:01:39 +02:00
'factories' => [
Options\AppOptions::class => Options\AppOptionsFactory::class,
2016-08-07 14:44:33 +02:00
2016-07-19 18:01:39 +02:00
// Services
Service\UrlShortener::class => AnnotatedFactory::class,
Service\VisitsTracker::class => AnnotatedFactory::class,
Service\ShortUrlService::class => AnnotatedFactory::class,
Service\VisitService::class => AnnotatedFactory::class,
2017-07-07 12:49:41 +02:00
Service\Tag\TagService::class => AnnotatedFactory::class,
2016-07-19 18:01:39 +02:00
// Middleware
2016-08-09 10:24:42 +02:00
Action\RedirectAction::class => AnnotatedFactory::class,
Action\QrCodeAction::class => AnnotatedFactory::class,
Action\PreviewAction::class => AnnotatedFactory::class,
Middleware\QrCodeCacheMiddleware::class => AnnotatedFactory::class,
2016-07-19 18:01:39 +02:00
],
],
];