mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-22 17:06:41 -06:00
26 lines
927 B
PHP
26 lines
927 B
PHP
<?php
|
|
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
|
|
use Shlinkio\Shlink\Rest\Action;
|
|
use Shlinkio\Shlink\Rest\Middleware;
|
|
use Shlinkio\Shlink\Rest\Service;
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
|
|
|
return [
|
|
|
|
'services' => [
|
|
'factories' => [
|
|
Service\RestTokenService::class => AnnotatedFactory::class,
|
|
|
|
Action\AuthenticateMiddleware::class => AnnotatedFactory::class,
|
|
Action\CreateShortcodeMiddleware::class => AnnotatedFactory::class,
|
|
Action\ResolveUrlMiddleware::class => AnnotatedFactory::class,
|
|
Action\GetVisitsMiddleware::class => AnnotatedFactory::class,
|
|
Action\ListShortcodesMiddleware::class => AnnotatedFactory::class,
|
|
|
|
Middleware\CrossDomainMiddleware::class => InvokableFactory::class,
|
|
Middleware\CheckAuthenticationMiddleware::class => AnnotatedFactory::class,
|
|
],
|
|
],
|
|
|
|
];
|