mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-24 21:58:40 +03:00
26 lines
1,004 B
PHP
26 lines
1,004 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,
|
|
Middleware\NotFoundMiddleware::class => AnnotatedFactory::class,
|
|
],
|
|
],
|
|
|
|
];
|