2016-07-19 10:07:59 -05:00
|
|
|
<?php
|
|
|
|
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
|
|
|
|
use Shlinkio\Shlink\Rest\Action;
|
2016-08-07 12:13:40 -05:00
|
|
|
use Shlinkio\Shlink\Rest\Authentication\JWTService;
|
2016-07-19 10:07:59 -05:00
|
|
|
use Shlinkio\Shlink\Rest\Middleware;
|
2016-07-19 10:12:50 -05:00
|
|
|
use Shlinkio\Shlink\Rest\Service;
|
2016-07-19 10:07:59 -05:00
|
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
2016-07-31 09:30:05 -05:00
|
|
|
'dependencies' => [
|
2016-07-19 10:07:59 -05:00
|
|
|
'factories' => [
|
2016-08-07 12:13:40 -05:00
|
|
|
JWTService::class => AnnotatedFactory::class,
|
2016-08-06 11:07:48 -05:00
|
|
|
Service\ApiKeyService::class => AnnotatedFactory::class,
|
2016-07-19 10:12:50 -05:00
|
|
|
|
2016-07-27 13:22:50 -05: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,
|
2017-07-07 04:45:20 -05:00
|
|
|
Action\EditShortcodeTagsAction::class => AnnotatedFactory::class,
|
2016-07-19 10:07:59 -05:00
|
|
|
|
2016-08-21 06:52:15 -05:00
|
|
|
Middleware\BodyParserMiddleware::class => AnnotatedFactory::class,
|
2016-07-19 10:07:59 -05:00
|
|
|
Middleware\CrossDomainMiddleware::class => InvokableFactory::class,
|
2016-10-22 11:46:53 -05:00
|
|
|
Middleware\PathVersionMiddleware::class => InvokableFactory::class,
|
2016-07-19 10:07:59 -05:00
|
|
|
Middleware\CheckAuthenticationMiddleware::class => AnnotatedFactory::class,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|