mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-24 16:10:38 -06:00
27 lines
1004 B
PHP
27 lines
1004 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,
|
|
],
|
|
],
|
|
|
|
];
|