shlink/module/Rest/config/dependencies.config.php

32 lines
1.3 KiB
PHP
Raw Normal View History

2016-07-19 18:07:59 +03:00
<?php
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
use Shlinkio\Shlink\Rest\Action;
use Shlinkio\Shlink\Rest\Authentication\JWTService;
2016-07-19 18:07:59 +03:00
use Shlinkio\Shlink\Rest\Middleware;
2016-07-19 18:12:50 +03:00
use Shlinkio\Shlink\Rest\Service;
2016-07-19 18:07:59 +03:00
use Zend\ServiceManager\Factory\InvokableFactory;
return [
'dependencies' => [
2016-07-19 18:07:59 +03:00
'factories' => [
JWTService::class => AnnotatedFactory::class,
Service\ApiKeyService::class => AnnotatedFactory::class,
2016-07-19 18:12:50 +03:00
Action\AuthenticateAction::class => AnnotatedFactory::class,
Action\CreateShortcodeAction::class => AnnotatedFactory::class,
Action\ResolveUrlAction::class => AnnotatedFactory::class,
Action\GetVisitsAction::class => AnnotatedFactory::class,
Action\ListShortcodesAction::class => AnnotatedFactory::class,
Action\EditShortcodeTagsAction::class => AnnotatedFactory::class,
2017-07-07 14:12:45 +03:00
Action\ListTagsAction::class => AnnotatedFactory::class,
2016-07-19 18:07:59 +03:00
Middleware\BodyParserMiddleware::class => AnnotatedFactory::class,
2016-07-19 18:07:59 +03:00
Middleware\CrossDomainMiddleware::class => InvokableFactory::class,
Middleware\PathVersionMiddleware::class => InvokableFactory::class,
2016-07-19 18:07:59 +03:00
Middleware\CheckAuthenticationMiddleware::class => AnnotatedFactory::class,
],
],
];