2016-07-19 19:01:39 +03:00
|
|
|
<?php
|
|
|
|
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
|
2016-08-09 11:24:42 +03:00
|
|
|
use Shlinkio\Shlink\Core\Action;
|
2016-08-09 14:41:30 +03:00
|
|
|
use Shlinkio\Shlink\Core\Middleware;
|
2016-08-16 00:40:49 +03:00
|
|
|
use Shlinkio\Shlink\Core\Options;
|
2016-07-19 19:01:39 +03:00
|
|
|
use Shlinkio\Shlink\Core\Service;
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
2016-07-31 17:30:05 +03:00
|
|
|
'dependencies' => [
|
2016-07-19 19:01:39 +03:00
|
|
|
'factories' => [
|
2016-08-16 00:40:49 +03:00
|
|
|
Options\AppOptions::class => Options\AppOptionsFactory::class,
|
2016-08-07 15:44:33 +03:00
|
|
|
|
2016-07-19 19:01:39 +03:00
|
|
|
// Services
|
|
|
|
Service\UrlShortener::class => AnnotatedFactory::class,
|
|
|
|
Service\VisitsTracker::class => AnnotatedFactory::class,
|
|
|
|
Service\ShortUrlService::class => AnnotatedFactory::class,
|
2016-07-20 20:00:23 +03:00
|
|
|
Service\VisitService::class => AnnotatedFactory::class,
|
2016-07-19 19:01:39 +03:00
|
|
|
|
|
|
|
// Middleware
|
2016-08-09 11:24:42 +03:00
|
|
|
Action\RedirectAction::class => AnnotatedFactory::class,
|
|
|
|
Action\QrCodeAction::class => AnnotatedFactory::class,
|
2016-08-18 12:10:15 +03:00
|
|
|
Action\PreviewAction::class => AnnotatedFactory::class,
|
2016-08-09 14:41:30 +03:00
|
|
|
Middleware\QrCodeCacheMiddleware::class => AnnotatedFactory::class,
|
2016-07-19 19:01:39 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|