shlink/module/Core/config/services.config.php

22 lines
625 B
PHP
Raw Normal View History

2016-07-19 19:01:39 +03:00
<?php
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
use Shlinkio\Shlink\Core\Action\RedirectMiddleware;
use Shlinkio\Shlink\Core\Service;
return [
'services' => [
'factories' => [
// Services
Service\UrlShortener::class => AnnotatedFactory::class,
Service\VisitsTracker::class => AnnotatedFactory::class,
Service\ShortUrlService::class => AnnotatedFactory::class,
Service\VisitService::class => AnnotatedFactory::class,
2016-07-19 19:01:39 +03:00
// Middleware
RedirectMiddleware::class => AnnotatedFactory::class,
],
],
];